diff options
author | Noah Slater <nslater@apache.org> | 2009-07-16 20:59:05 +0000 |
---|---|---|
committer | Noah Slater <nslater@apache.org> | 2009-07-16 20:59:05 +0000 |
commit | 6c9ef188eb84daa48734c1be086281437d3d9396 (patch) | |
tree | ddae869d029209392c0ad0e0f2aacabe17e69837 /share/www/script/jquery.couch.js | |
parent | 111e428481cbef587b906f9b067cd07a3b96610c (diff) | |
parent | 0308efb1a1f885ab51d53db203e2f4a51d947a23 (diff) | |
download | couchdb-0.9.1.tar.gz |
tagging 0.9.10.9.1
git-svn-id: https://svn.apache.org/repos/asf/couchdb/tags/0.9.1@794853 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/jquery.couch.js')
-rw-r--r-- | share/www/script/jquery.couch.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/www/script/jquery.couch.js b/share/www/script/jquery.couch.js index d6aa512ec..919647aad 100644 --- a/share/www/script/jquery.couch.js +++ b/share/www/script/jquery.couch.js @@ -239,9 +239,9 @@ dataType: "json", data: toJSON(doc), complete: function(req) { var resp = $.httpData(req, "json") - doc._id = resp.id; - doc._rev = resp.rev; if (req.status == 201) { + doc._id = resp.id; + doc._rev = resp.rev; if (options.success) options.success(resp); } else if (options.error) { options.error(req.status, resp.error, resp.reason); |