From 1ae01c6a2646681355b174e2f85a51086a9df41c Mon Sep 17 00:00:00 2001 From: Filipe David Borba Manana Date: Wed, 21 Jul 2010 15:56:53 +0000 Subject: Merge revision 966283 from trunk: Add "Stale views" checkbox to Futon's database pages. Closes COUCHDB-550. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@966288 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(-) (limited to 'share/www') 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.
+
+ +