Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
None
-
None
-
New Contributors Level (Easy)
Description
Calling $.couch.replicate with
{ continous: true, cancel: true }results in an alert error message. Should be quiet and call success handler.
Patch:
diff --git a/share/www/script/jquery.couch.js b/share/www/script/jquery.couch.js
index 114e580..14d2506 100644
— a/share/www/script/jquery.couch.js
+++ b/share/www/script/jquery.couch.js
@@ -563,7 +563,7 @@
replicate: function(source, target, ajaxOptions, repOpts) {
repOpts = $.extend(
, repOpts);
- if (repOpts.continuous) {
+ if (repOpts.continuous && !repOpts.cancel) { ajaxOptions.successStatus = 202; }ajax({
Attachments
Issue Links
- is related to
-
COUCHDB-1115 Added button to cancel continuous replications
- Closed