From 6bd11d1195f63380bcfd4a1ac6aa6a10700ad5f2 Mon Sep 17 00:00:00 2001 From: Filipe David Borba Manana Date: Wed, 21 Jul 2010 15:43:07 +0000 Subject: Add "Stale views" checkbox to Futon's database pages. Closes COUCHDB-550. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@966283 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/database.html | 11 +++++++++++ share/www/script/futon.browse.js | 8 +++++++- share/www/style/layout.css | 7 +++++++ 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/share/www/database.html b/share/www/database.html index 5142ed1b..39507398 100644 --- a/share/www/database.html +++ b/share/www/database.html @@ -81,6 +81,9 @@ specific language governing permissions and limitations under the License. $("#perpage").val($.futon.storage.get("per_page")); + var staleViews = $.futon.storage.get("stale"); + $("#staleviews :checkbox")[0].checked = staleViews; + page.populateViewsMenu(); page.populateViewEditor(); if (page.isTempView) { @@ -94,6 +97,9 @@ specific language governing permissions and limitations under the License. location.href = "?" + encodeURIComponent(page.db.name) + (viewName ? "/" + viewName : ""); }); + $("#staleviews :checkbox").click(function() { + $.futon.storage.set("stale", this.checked); + }); $("#documents thead th.key span").click(function() { $(this).closest("th").toggleClass("desc"); page.updateDocumentListing(); @@ -148,6 +154,11 @@ specific language governing permissions and limitations under the License.
+
+ +