couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [22/50] jquery-couch commit: updated refs/heads/import-master to 66dbcbf
Date Tue, 01 Apr 2014 08:52:27 GMT
add continuous replication support to Futon

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@955290 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/commit/b0beb2d5
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/tree/b0beb2d5
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/diff/b0beb2d5

Branch: refs/heads/import-master
Commit: b0beb2d586931680821c4609a28d228f015360d9
Parents: 3f5e55a
Author: John Christopher Anderson <jchris@apache.org>
Authored: Wed Jun 16 16:36:04 2010 +0000
Committer: Alexander Shorin <kxepal@gmail.com>
Committed: Wed Jun 16 16:36:04 2010 +0000

----------------------------------------------------------------------
 jquery.couch.js | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/blob/b0beb2d5/jquery.couch.js
----------------------------------------------------------------------
diff --git a/jquery.couch.js b/jquery.couch.js
index 682e999..b691ea0 100644
--- a/jquery.couch.js
+++ b/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,


Mime
View raw message