summaryrefslogtreecommitdiff
path: root/share/www/script/futon.browse.js
diff options
context:
space:
mode:
authorFilipe David Borba Manana <fdmanana@apache.org>2010-07-21 15:56:53 +0000
committerFilipe David Borba Manana <fdmanana@apache.org>2010-07-21 15:56:53 +0000
commit1ae01c6a2646681355b174e2f85a51086a9df41c (patch)
tree702201854f9fa617bac9a1213c8532d1db2bcd3a /share/www/script/futon.browse.js
parentb6cd81b7f0e85c7b3a976c9ffb436562449a04da (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/script/futon.browse.js')
-rw-r--r--share/www/script/futon.browse.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/share/www/script/futon.browse.js b/share/www/script/futon.browse.js
index 0e8b4213..5f687941 100644
--- a/share/www/script/futon.browse.js
+++ b/share/www/script/futon.browse.js
@@ -107,7 +107,8 @@
reduce: {},
group_level: {defaultValue: 100},
per_page: {defaultValue: 10},
- view: {defaultValue: ""}
+ view: {defaultValue: ""},
+ stale: {defaultValue: false}
});
var viewName = (urlParts.length > 0) ? urlParts.join("/") : null;
@@ -765,6 +766,11 @@
db.query(currentMapCode, currentReduceCode, page.viewLanguage, options);
} else {
var viewParts = viewName.split('/');
+
+ if ($.futon.storage.get("stale")) {
+ options.stale = "ok";
+ }
+
db.view(viewParts[1] + "/" + viewParts[3], options);
}
}