From 78088d9faa123bcae39ed16dd0e15f8d41b34bd3 Mon Sep 17 00:00:00 2001 From: Paul Joseph Davis Date: Fri, 30 Oct 2009 23:08:42 +0000 Subject: Closes COUCHDB-547 - Adding a View Compaction Button Thanks to Joshua Bronson for the patch. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@831485 13f79535-47bb-0310-9956-ffa450edef68 --- THANKS | 1 + share/www/database.html | 4 +++- share/www/dialog/_compact_database.html | 2 +- share/www/dialog/_compact_view.html | 28 ++++++++++++++++++++++++++++ share/www/script/futon.browse.js | 15 +++++++++++++++ share/www/script/jquery.couch.js | 10 ++++++++++ share/www/style/layout.css | 1 + 7 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 share/www/dialog/_compact_view.html diff --git a/THANKS b/THANKS index 324a1986..09b79b92 100644 --- a/THANKS +++ b/THANKS @@ -37,5 +37,6 @@ suggesting improvements or submitting changes. Some of these people are: * Dan Walters * Curt Arnold * Gustavo Niemeyer + * Joshua Bronson For a list of authors see the `AUTHORS` file. diff --git a/share/www/database.html b/share/www/database.html index cfba8f64..0f8c2c22 100644 --- a/share/www/database.html +++ b/share/www/database.html @@ -37,7 +37,7 @@ specific language governing permissions and limitations under the License. $(function() { if (page.redirecting) return; - $("h1 strong").text(page.db.name); + $("h1 strong").html('' + page.db.name + ''); var viewPath = page.viewName || "_all_docs"; if (viewPath != "_temp_view" && viewPath != "_design_docs") { $("h1 a.raw").attr("href", "/" + encodeURIComponent(page.db.name) + @@ -100,6 +100,7 @@ specific language governing permissions and limitations under the License. $("#toolbar button.add").click(page.newDocument); $("#toolbar button.compact").click(page.compactDatabase); $("#toolbar button.delete").click(page.deleteDatabase); + $("#toolbar button.compactview").click(page.compactView); $('#jumpto input').addPlaceholder("Document ID").suggest(function(text, callback) { page.db.allDocs({ @@ -146,6 +147,7 @@ specific language governing permissions and limitations under the License.
  • +