From 0b55e8a26c9314312732f6481ae62c7a5611f072 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Fri, 20 Mar 2009 10:58:52 +0000 Subject: map queries with group=true query option will return an error. closes COUCHDB-185. changes to jquery.couch.js to support ajaxOptions may be useful for more than just openDoc, will need to be spread to the rest of the API. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@756413 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/jquery.couch.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (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 ace9a8a6..d6aa512e 100644 --- a/share/www/script/jquery.couch.js +++ b/share/www/script/jquery.couch.js @@ -205,9 +205,10 @@ alert("please provide an eachApp function for allApps()"); } }, - openDoc: function(docId, options) { + openDoc: function(docId, options, ajaxOptions) { options = options || {}; - $.ajax({ + ajaxOptions = ajaxOptions || {}; + $.ajax($.extend({ type: "GET", url: this.uri + encodeURIComponent(docId) + encodeOptions(options), dataType: "json", @@ -221,7 +222,7 @@ alert("The document could not be retrieved: " + resp.reason); } } - }); + }, ajaxOptions)); }, saveDoc: function(doc, options) { options = options || {}; -- cgit v1.2.3