summaryrefslogtreecommitdiff
path: root/share/www/script/futon.browse.js
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2010-01-02 19:01:25 +0000
committerJohn Christopher Anderson <jchris@apache.org>2010-01-02 19:01:25 +0000
commit22da1e28bd68084cc5e13feab81db445775c6429 (patch)
tree0a6d79bda5665bf39cf7789702012d3d0ff98d57 /share/www/script/futon.browse.js
parent6bd4afc34d12f96b3872e6b0bc028ad7f01b579c (diff)
add button to cleanup old view files. closes COUCHDB-610. thanks Ilia Cheishvili
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@895262 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/futon.browse.js')
-rw-r--r--share/www/script/futon.browse.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/share/www/script/futon.browse.js b/share/www/script/futon.browse.js
index 172c7b62..437c30c2 100644
--- a/share/www/script/futon.browse.js
+++ b/share/www/script/futon.browse.js
@@ -152,6 +152,18 @@
});
}
+ this.viewCleanup = function() {
+ $.showDialog("dialog/_view_cleanup.html", {
+ submit: function(data, callback) {
+ db.viewCleanup({
+ success: function(resp) {
+ callback();
+ }
+ });
+ }
+ });
+ }
+
this.compactView = function() {
var groupname = page.viewName.substring(8,
page.viewName.indexOf('/_view'));