couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r961856 - /couchdb/branches/1.0.x/share/www/script/jquery.couch.js
Date Thu, 08 Jul 2010 18:10:57 GMT
Author: jchris
Date: Thu Jul  8 18:10:56 2010
New Revision: 961856

URL: http://svn.apache.org/viewvc?rev=961856&view=rev
Log:
use json as the default content-type for requests from jquery.couch.js

Modified:
    couchdb/branches/1.0.x/share/www/script/jquery.couch.js

Modified: couchdb/branches/1.0.x/share/www/script/jquery.couch.js
URL: http://svn.apache.org/viewvc/couchdb/branches/1.0.x/share/www/script/jquery.couch.js?rev=961856&r1=961855&r2=961856&view=diff
==============================================================================
--- couchdb/branches/1.0.x/share/www/script/jquery.couch.js [utf-8] (original)
+++ couchdb/branches/1.0.x/share/www/script/jquery.couch.js [utf-8] Thu Jul  8 18:10:56 2010
@@ -595,6 +595,7 @@
 
   function ajax(obj, options, errorMessage, ajaxOptions) {
     options = $.extend({successStatus: 200}, options);
+    ajaxOptions = $.extend({contentType: "application/json"}, ajaxOptions);
     errorMessage = errorMessage || "Unknown error";
     $.ajax($.extend($.extend({
       type: "GET", dataType: "json", cache : !$.browser.msie,



Mime
View raw message