diff options
author | Filipe David Borba Manana <fdmanana@apache.org> | 2010-07-21 15:56:53 +0000 |
---|---|---|
committer | Filipe David Borba Manana <fdmanana@apache.org> | 2010-07-21 15:56:53 +0000 |
commit | 1ae01c6a2646681355b174e2f85a51086a9df41c (patch) | |
tree | 702201854f9fa617bac9a1213c8532d1db2bcd3a /share/www/database.html | |
parent | b6cd81b7f0e85c7b3a976c9ffb436562449a04da (diff) |
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
Diffstat (limited to 'share/www/database.html')
-rw-r--r-- | share/www/database.html | 11 |
1 files changed, 11 insertions, 0 deletions
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. <a class="raw" title="Raw view"></a> </h1> <div id="content"> + <div id="staleviews"> + <label>Stale views + <input name="staleviews" type="checkbox" /> + </label> + </div> <div id="switch"> <label>View: <select autocomplete="false"> <option value="_all_docs">All documents</option> |