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 1220B105C0 for ; Tue, 1 Apr 2014 08:53:38 +0000 (UTC) Received: (qmail 21527 invoked by uid 500); 1 Apr 2014 08:52:12 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 21362 invoked by uid 500); 1 Apr 2014 08:52:09 -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 21272 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 A04A791B1BB; 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:06 -0000 Message-Id: <9b1fa52a5b7c4e23a6ef348e7963b27c@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [01/50] jquery-couch commit: updated refs/heads/import-master to 66dbcbf Repository: couchdb-jquery-couch Updated Branches: refs/heads/import-master [created] 66dbcbfc1 enable multi-key-get in jquery.couch.js, patch by Benoit Chesneau, closes COUHCDB-376 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@814364 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/ec1fff9e Tree: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/tree/ec1fff9e Diff: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/diff/ec1fff9e Branch: refs/heads/import-master Commit: ec1fff9e1d034111f95dfd528cd36e6b3d05401d Parents: fd400b2 Author: Jan Lehnardt Authored: Sun Sep 13 17:53:57 2009 +0000 Committer: Alexander Shorin Committed: Sun Sep 13 17:53:57 2009 +0000 ---------------------------------------------------------------------- jquery.couch.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/blob/ec1fff9e/jquery.couch.js ---------------------------------------------------------------------- diff --git a/jquery.couch.js b/jquery.couch.js index 8e51727..5d189b2 100644 --- a/jquery.couch.js +++ b/jquery.couch.js @@ -249,8 +249,20 @@ ); }, view: function(name, options) { - name = name.split('/'); + var name = name.split('/'); + var options = options || {}; + var type = "GET"; + var data= null; + if (options["keys"]) { + type = "POST"; + var keys = options["keys"]; + delete options["keys"]; + data = toJSON({ "keys": keys }); + console.log(data); + } ajax({ + type: type, + data: data, url: this.uri + "_design/" + name[0] + "/_view/" + name[1] + encodeOptions(options) },