From 22da1e28bd68084cc5e13feab81db445775c6429 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Sat, 2 Jan 2010 19:01:25 +0000 Subject: 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 --- share/www/script/jquery.couch.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'share/www/script/jquery.couch.js') diff --git a/share/www/script/jquery.couch.js b/share/www/script/jquery.couch.js index 05b3af79..6812ed9a 100644 --- a/share/www/script/jquery.couch.js +++ b/share/www/script/jquery.couch.js @@ -111,6 +111,16 @@ "The database could not be compacted" ); }, + viewCleanup: function(options) { + $.extend(options, {successStatus: 202}); + ajax({ + type: "POST", url: this.uri + "_view_cleanup", + data: "", processData: false + }, + options, + "The views could not be cleaned up" + ); + }, compactView: function(groupname, options) { $.extend(options, {successStatus: 202}); ajax({ -- cgit v1.2.3