summaryrefslogtreecommitdiff
path: root/share/www/database.html
diff options
context:
space:
mode:
authorFilipe David Borba Manana <fdmanana@apache.org>2010-07-21 15:43:07 +0000
committerFilipe David Borba Manana <fdmanana@apache.org>2010-07-21 15:43:07 +0000
commit6bd11d1195f63380bcfd4a1ac6aa6a10700ad5f2 (patch)
treea11960fd717b3cd70c5e2412245f28f316ab39db /share/www/database.html
parent5fc1e706ee5015e6a555f46a5eea601b4ec3bf63 (diff)
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
Diffstat (limited to 'share/www/database.html')
-rw-r--r--share/www/database.html11
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>