couchdb-commits mailing list archives

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


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/589d1539
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/tree/589d1539
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/diff/589d1539

Branch: refs/heads/import-master
Commit: 589d1539a6082d7d25514cdaa9290f4b7ac08c0c
Parents: 4902e38
Author: Paul Joseph Davis <davisp@apache.org>
Authored: Fri Oct 30 23:08:42 2009 +0000
Committer: Alexander Shorin <kxepal@gmail.com>
Committed: Fri Oct 30 23:08:42 2009 +0000

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


http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/blob/589d1539/jquery.couch.js
----------------------------------------------------------------------
diff --git a/jquery.couch.js b/jquery.couch.js
index e106b17..66daefc 100644
--- a/jquery.couch.js
+++ b/jquery.couch.js
@@ -111,6 +111,16 @@
             "The database could not be compacted"
           );
         },
+        compactView: function(groupname, options) {
+          $.extend(options, {successStatus: 202});
+          ajax({
+              type: "POST", url: this.uri + "_compact/" + groupname,
+              data: "", processData: false
+            },
+            options,
+            "The view could not be compacted"
+          );
+        },
         create: function(options) {
           $.extend(options, {successStatus: 201});
           ajax({


Mime
View raw message