diff options
author | John Christopher Anderson <jchris@apache.org> | 2010-06-16 16:36:04 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2010-06-16 16:36:04 +0000 |
commit | 4ccf61a343c2437fb574bf00e4e3da5e48e17548 (patch) | |
tree | 221db389d86a37737e967f94fb1ecddbd8ea8331 /share/www/script/jquery.couch.js | |
parent | bc50bbf1e8bd7474f0cb91975dfbf7a7bbc1922b (diff) |
add continuous replication support to Futon
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@955290 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/jquery.couch.js')
-rw-r--r-- | share/www/script/jquery.couch.js | 9 |
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, |