couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r957964 - /couchdb/branches/0.11.x/share/www/script/jquery.couch.js
Date Fri, 25 Jun 2010 14:15:33 GMT
Author: jan
Date: Fri Jun 25 14:15:33 2010
New Revision: 957964

URL: http://svn.apache.org/viewvc?rev=957964&view=rev
Log:
Merge r955782 from trunk:

jquery.couch.js works with PUT to delete.

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

Modified: couchdb/branches/0.11.x/share/www/script/jquery.couch.js
URL: http://svn.apache.org/viewvc/couchdb/branches/0.11.x/share/www/script/jquery.couch.js?rev=957964&r1=957963&r2=957964&view=diff
==============================================================================
--- couchdb/branches/0.11.x/share/www/script/jquery.couch.js [utf-8] (original)
+++ couchdb/branches/0.11.x/share/www/script/jquery.couch.js [utf-8] Fri Jun 25 14:15:33 2010
@@ -317,7 +317,7 @@
             dataType: "json", data: toJSON(doc),
             complete: function(req) {
               var resp = $.httpData(req, "json");
-              if (req.status == 201 || req.status == 202) {
+              if (req.status == 200 || req.status == 201 || req.status == 202) {
                 doc._id = resp.id;
                 doc._rev = resp.rev;
                 if (options.success) options.success(resp);



Mime
View raw message