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