summaryrefslogtreecommitdiff
path: root/share/www/database.html
diff options
context:
space:
mode:
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>