You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2011/04/16 20:31:37 UTC

svn commit: r1094026 - in /couchdb/branches/1.0.x: THANKS share/www/script/jquery.couch.js

Author: jan
Date: Sat Apr 16 18:31:37 2011
New Revision: 1094026

URL: http://svn.apache.org/viewvc?rev=1094026&view=rev
Log:
Don't expect a 202 repsponse code when cancelling a replication.

Closes COUCHDB-1016

Patch by Felix Hummel.

Modified:
    couchdb/branches/1.0.x/THANKS
    couchdb/branches/1.0.x/share/www/script/jquery.couch.js

Modified: couchdb/branches/1.0.x/THANKS
URL: http://svn.apache.org/viewvc/couchdb/branches/1.0.x/THANKS?rev=1094026&r1=1094025&r2=1094026&view=diff
==============================================================================
--- couchdb/branches/1.0.x/THANKS (original)
+++ couchdb/branches/1.0.x/THANKS Sat Apr 16 18:31:37 2011
@@ -70,5 +70,6 @@ suggesting improvements or submitting ch
  * Benjamin Young <by...@bigbluehat.com>
  * Gabriel Farrell <gs...@gmail.com>
  * Mike Leddy <mi...@loop.com.br>
+ * Felix Hummel <ap...@felixhummel.de>
 
 For a list of authors see the `AUTHORS` file.

Modified: couchdb/branches/1.0.x/share/www/script/jquery.couch.js
URL: http://svn.apache.org/viewvc/couchdb/branches/1.0.x/share/www/script/jquery.couch.js?rev=1094026&r1=1094025&r2=1094026&view=diff
==============================================================================
--- couchdb/branches/1.0.x/share/www/script/jquery.couch.js [utf-8] (original)
+++ couchdb/branches/1.0.x/share/www/script/jquery.couch.js [utf-8] Sat Apr 16 18:31:37 2011
@@ -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({