summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/www/script/jquery.couch.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/www/script/jquery.couch.js b/share/www/script/jquery.couch.js
index d3d73671..4c42211c 100644
--- a/share/www/script/jquery.couch.js
+++ b/share/www/script/jquery.couch.js
@@ -271,7 +271,7 @@
openDoc: function(docId, options, ajaxOptions) {
options = options || {};
if (db_opts.attachPrevRev || options.attachPrevRev) {
- $.extend(options, {
+ $.extend(ajaxOptions, {
beforeSuccess : function(req, doc) {
rawDocs[doc._id] = {
rev : doc._rev,
@@ -280,7 +280,7 @@
}
});
} else {
- $.extend(options, {
+ $.extend(ajaxOptions, {
beforeSuccess : function(req, doc) {
if (doc["jquery.couch.attachPrevRev"]) {
rawDocs[doc._id] = {
@@ -344,7 +344,7 @@
ajax({
type: "POST",
url: this.uri + "_bulk_docs" + encodeOptions(options),
- data: toJSON(docs)
+ contentType: "application/json", data: toJSON(docs)
},
options,
"The documents could not be saved"