summaryrefslogtreecommitdiff
path: root/share/www/script/jquery.couch.js
diff options
context:
space:
mode:
Diffstat (limited to 'share/www/script/jquery.couch.js')
-rw-r--r--share/www/script/jquery.couch.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/share/www/script/jquery.couch.js b/share/www/script/jquery.couch.js
index efd646a4..11d11d0d 100644
--- a/share/www/script/jquery.couch.js
+++ b/share/www/script/jquery.couch.js
@@ -547,11 +547,14 @@
);
},
- replicate: function(source, target, ajaxOptions, replicationOptions) {
- replicationOptions = $.extend({source: source, target: target}, replicationOptions);
+ replicate: function(source, target, ajaxOptions, repOpts) {
+ $.extend(repOpts, {source: source, target: target});
+ if (repOpts.continuous) {
+ ajaxOptions.successStatus = 202;
+ }
ajax({
type: "POST", url: this.urlPrefix + "/_replicate",
- data: JSON.stringify(replicationOptions),
+ data: JSON.stringify(repOpts),
contentType: "application/json"
},
ajaxOptions,