$.couch.replicate throws error when cancelling continous replication
--------------------------------------------------------------------
Key: COUCHDB-1016
URL: https://issues.apache.org/jira/browse/COUCHDB-1016
Project: CouchDB
Issue Type: Bug
Components: Replication
Reporter: Felix Hummel
Priority: Trivial
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({source: source, target: target}, repOpts);
- if (repOpts.continuous) {
+ if (repOpts.continuous && !repOpts.cancel) {
ajaxOptions.successStatus = 202;
}
ajax({
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.