summaryrefslogtreecommitdiff
path: root/share/www/script/browse.js
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2008-04-10 10:27:56 +0000
committerChristopher Lenz <cmlenz@apache.org>2008-04-10 10:27:56 +0000
commitd7e0687f4ecd82af8f2cf25d6a0ba676ee051e23 (patch)
treee3fbbb221d880468b2de1acab30183409b9e57e9 /share/www/script/browse.js
parenta95cb866043f25f09b40ec95140f16eb69d0adb1 (diff)
Add DB compaction button to Futon. Closes COUCHDB-38. Thanks to Jim Lindley for the patch!
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@646734 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/browse.js')
-rw-r--r--share/www/script/browse.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/share/www/script/browse.js b/share/www/script/browse.js
index cd9b8bd9..7fafc252 100644
--- a/share/www/script/browse.js
+++ b/share/www/script/browse.js
@@ -84,6 +84,14 @@ function CouchDatabasePage() {
});
}
+ this.compactDatabase = function() {
+ $.showDialog("_compact_database.html", {
+ submit: function() {
+ db.compact();
+ }
+ });
+ }
+
this.deleteDatabase = function() {
$.showDialog("_delete_database.html", {
submit: function() {