You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2010/06/15 16:00:03 UTC

svn commit: r954888 - /couchdb/branches/0.11.x/share/www/script/jquery.couch.js

Author: jan
Date: Tue Jun 15 14:00:02 2010
New Revision: 954888

URL: http://svn.apache.org/viewvc?rev=954888&view=rev
Log:
Partial merge of r949028 from trunk:

Fix some bugs in jquery.couch.js.

Namely:

 * bulkSave() wasn't sending a POST body.

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=954888&r1=954887&r2=954888&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] Tue Jun 15 14:00:02 2010
@@ -289,7 +289,7 @@
           ajax({
               type: "POST",
               url: this.uri + "_bulk_docs" + encodeOptions(options),
-              data: toJSON(docs)
+              contentType: "application/json", data: toJSON(docs)
             },
             options,
             "The documents could not be saved"