couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r955782 - /couchdb/trunk/share/www/script/jquery.couch.js
Date Thu, 17 Jun 2010 23:17:15 GMT
Author: jchris
Date: Thu Jun 17 23:17:15 2010
New Revision: 955782

URL: http://svn.apache.org/viewvc?rev=955782&view=rev
Log:
jquery.couch.js works with PUT to delete.

Modified:
    couchdb/trunk/share/www/script/jquery.couch.js

Modified: couchdb/trunk/share/www/script/jquery.couch.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/jquery.couch.js?rev=955782&r1=955781&r2=955782&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/jquery.couch.js [utf-8] (original)
+++ couchdb/trunk/share/www/script/jquery.couch.js [utf-8] Thu Jun 17 23:17:15 2010
@@ -372,7 +372,7 @@
             beforeSend : beforeSend,
             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 (versioned) {



Mime
View raw message