diff options
author | Dale Harvey <dale@arandomurl.com> | 2014-03-11 15:16:13 +0400 |
---|---|---|
committer | Alexander Shorin <kxepal@apache.org> | 2014-03-11 15:17:39 +0400 |
commit | 160f826e5f61f52bd7830e47f45738bedde11137 (patch) | |
tree | 4cd3c56e4c9274f459f7912b461a8ef4317d4432 /share | |
parent | e7548b2e51ffed71b8a770207a5dd33d7ed49049 (diff) | |
download | couchdb-160f826e5f61f52bd7830e47f45738bedde11137.tar.gz |
More deferred support to jquery.couch.js
COUCHDB-1180
Signed-off-by: Alexander Shorin <kxepal@apache.org>
Diffstat (limited to 'share')
-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 facaf9ca1..ffbad3430 100644 --- a/share/www/script/jquery.couch.js +++ b/share/www/script/jquery.couch.js @@ -160,7 +160,7 @@ * @private */ userDb : function(callback) { - $.couch.session({ + return $.couch.session({ success : function(resp) { var userDb = $.couch.db(resp.info.authentication_db); callback(userDb); @@ -187,7 +187,7 @@ var user_prefix = "org.couchdb.user:"; user_doc._id = user_doc._id || user_prefix + user_doc.name; - $.couch.userDb(function(db) { + return $.couch.userDb(function(db) { db.saveDoc(user_doc, options); }); }, |