couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dam...@apache.org
Subject svn commit: r657930 - /incubator/couchdb/trunk/share/www/script/jquery.couch.js
Date Mon, 19 May 2008 19:28:20 GMT
Author: damien
Date: Mon May 19 12:28:19 2008
New Revision: 657930

URL: http://svn.apache.org/viewvc?rev=657930&view=rev
Log:
fix to submit temp view src as json

Modified:
    incubator/couchdb/trunk/share/www/script/jquery.couch.js

Modified: incubator/couchdb/trunk/share/www/script/jquery.couch.js
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/script/jquery.couch.js?rev=657930&r1=657929&r2=657930&view=diff
==============================================================================
--- incubator/couchdb/trunk/share/www/script/jquery.couch.js [utf-8] (original)
+++ incubator/couchdb/trunk/share/www/script/jquery.couch.js [utf-8] Mon May 19 12:28:19 2008
@@ -179,7 +179,9 @@
             fun = fun.toSource ? fun.toSource() : "(" + fun.toString() + ")";
           $.ajax({
             type: "POST", url: this.uri + "_temp_view" + encodeOptions(options),
-            contentType: "javascript", data: fun, dataType: "json",
+            contentType: "application/json",
+            data: toJSON({language:"javascript", map:fun}),
+            dataType: "json",
             complete: function(req) {
               var resp = $.httpData(req, "json");
               if (req.status == 200 && options.success) {



Mime
View raw message