From 08bac9b0be9b90b0b93593be87a8ca82736aa17a Mon Sep 17 00:00:00 2001 From: Christopher Lenz Date: Tue, 19 Jan 2010 23:23:43 +0000 Subject: Futon: Merge the different compaction/cleanup buttons into a single button on the database page, which will bring up a dialog allowing you to choose which type of compaction/cleanup to perform. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@900999 13f79535-47bb-0310-9956-ffa450edef68 --- share/Makefile.am | 4 +-- share/www/database.html | 8 ++---- share/www/dialog/_compact_cleanup.html | 51 +++++++++++++++++++++++++++++++++ share/www/dialog/_compact_database.html | 28 ------------------ share/www/dialog/_compact_view.html | 28 ------------------ share/www/dialog/_view_cleanup.html | 28 ------------------ share/www/script/futon.browse.js | 48 ++++++++++--------------------- share/www/style/layout.css | 7 +++-- 8 files changed, 74 insertions(+), 128 deletions(-) create mode 100644 share/www/dialog/_compact_cleanup.html delete mode 100644 share/www/dialog/_compact_database.html delete mode 100644 share/www/dialog/_compact_view.html delete mode 100644 share/www/dialog/_view_cleanup.html (limited to 'share') diff --git a/share/Makefile.am b/share/Makefile.am index dafbc786..39ae06e4 100644 --- a/share/Makefile.am +++ b/share/Makefile.am @@ -40,9 +40,7 @@ nobase_dist_localdata_DATA = \ www/custom_test.html \ www/database.html \ www/dialog/_admin_party.html \ - www/dialog/_compact_database.html \ - www/dialog/_compact_view.html \ - www/dialog/_view_cleanup.html \ + www/dialog/_compact_cleanup.html \ www/dialog/_create_admin.html \ www/dialog/_login.html \ www/dialog/_signup.html \ diff --git a/share/www/database.html b/share/www/database.html index a3a02a52..ea15a66f 100644 --- a/share/www/database.html +++ b/share/www/database.html @@ -115,10 +115,8 @@ specific language governing permissions and limitations under the License. $.futon.storage.set("per_page", this.value); }); $("#toolbar button.add").click(page.newDocument); - $("#toolbar button.compact").click(page.compactDatabase); - $("#toolbar button.viewcleanup").click(page.viewCleanup); + $("#toolbar button.compact").click(page.compactAndCleanup); $("#toolbar button.delete").click(page.deleteDatabase); - $("#toolbar button.compactview").click(page.compactView); $('#jumpto input').suggest(function(text, callback) { page.db.allDocs({ @@ -163,10 +161,8 @@ specific language governing permissions and limitations under the License.