couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [23/50] jquery-couch commit: updated refs/heads/import-master to 66dbcbf
Date Tue, 01 Apr 2014 08:52:28 GMT
jquery.couch.js works with PUT to delete.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@955782 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/commit/5a4d48af
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/tree/5a4d48af
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/diff/5a4d48af

Branch: refs/heads/import-master
Commit: 5a4d48afd4014d29890b071f6944743c55e95d4c
Parents: b0beb2d
Author: John Christopher Anderson <jchris@apache.org>
Authored: Thu Jun 17 23:17:15 2010 +0000
Committer: Alexander Shorin <kxepal@gmail.com>
Committed: Thu Jun 17 23:17:15 2010 +0000

----------------------------------------------------------------------
 jquery.couch.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/blob/5a4d48af/jquery.couch.js
----------------------------------------------------------------------
diff --git a/jquery.couch.js b/jquery.couch.js
index b691ea0..9193860 100644
--- a/jquery.couch.js
+++ b/jquery.couch.js
@@ -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