Index: share/www/script/jquery.couch.js =================================================================== --- share/www/script/jquery.couch.js (revision 825472) +++ share/www/script/jquery.couch.js (working copy) @@ -189,7 +189,9 @@ var method = "PUT"; var uri = this.uri + encodeDocId(doc._id); } + if (options.async === undefined) options.async = true; $.ajax({ + async: options.async, type: method, url: uri + encodeOptions(options), contentType: "application/json", dataType: "json", data: toJSON(doc), @@ -362,7 +364,7 @@ var buf = []; if (typeof(options) === "object" && options !== null) { for (var name in options) { - if ($.inArray(name, ["error", "success"]) >= 0) + if ($.inArray(name, ["error", "success", "async"]) >= 0) continue; var value = options[name]; if ($.inArray(name, ["key", "startkey", "endkey"]) >= 0) {