couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [04/50] jquery-couch commit: updated refs/heads/import-master to 66dbcbf
Date Tue, 01 Apr 2014 08:52:09 GMT
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


Project: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/commit/946cc88c
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/tree/946cc88c
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/diff/946cc88c

Branch: refs/heads/import-master
Commit: 946cc88c4f54079f2a45ca2f3fcb672b4dd454c4
Parents: 589d153
Author: John Christopher Anderson <jchris@apache.org>
Authored: Sat Jan 2 19:01:25 2010 +0000
Committer: Alexander Shorin <kxepal@gmail.com>
Committed: Sat Jan 2 19:01:25 2010 +0000

----------------------------------------------------------------------
 jquery.couch.js | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/blob/946cc88c/jquery.couch.js
----------------------------------------------------------------------
diff --git a/jquery.couch.js b/jquery.couch.js
index 66daefc..b747825 100644
--- a/jquery.couch.js
+++ b/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({


Mime
View raw message