Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 444D4105C3 for ; Tue, 1 Apr 2014 08:53:39 +0000 (UTC) Received: (qmail 21787 invoked by uid 500); 1 Apr 2014 08:52:17 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 21385 invoked by uid 500); 1 Apr 2014 08:52:10 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 21273 invoked by uid 99); 1 Apr 2014 08:52:07 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2014 08:52:06 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id A959B91B1BF; Tue, 1 Apr 2014 08:52:06 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: kxepal@apache.org To: commits@couchdb.apache.org Date: Tue, 01 Apr 2014 08:52:08 -0000 Message-Id: <43c48ca2d44e4305b3553ba35c090b2a@git.apache.org> In-Reply-To: <9b1fa52a5b7c4e23a6ef348e7963b27c@git.apache.org> References: <9b1fa52a5b7c4e23a6ef348e7963b27c@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [03/50] jquery-couch commit: updated refs/heads/import-master to 66dbcbf 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 Authored: Fri Oct 30 23:08:42 2009 +0000 Committer: Alexander Shorin 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({