summaryrefslogtreecommitdiff
path: root/share/www/script/jquery.couch.js
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2009-03-20 10:58:52 +0000
committerJohn Christopher Anderson <jchris@apache.org>2009-03-20 10:58:52 +0000
commit0b55e8a26c9314312732f6481ae62c7a5611f072 (patch)
treec4173d9ce900ce4c67ec3b822e17064a1be15a73 /share/www/script/jquery.couch.js
parentc87b89dea947ac11ce46f9f7d6dcf873caa990d4 (diff)
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
Diffstat (limited to 'share/www/script/jquery.couch.js')
-rw-r--r--share/www/script/jquery.couch.js7
1 files changed, 4 insertions, 3 deletions
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 || {};