diff options
author | Damien F. Katz <damien@apache.org> | 2008-05-19 19:28:19 +0000 |
---|---|---|
committer | Damien F. Katz <damien@apache.org> | 2008-05-19 19:28:19 +0000 |
commit | 568b798126654d0c9dfe964323df2aa5f6b9233b (patch) | |
tree | 90f86fea28e32015f15d70c8209b884a87a885b6 /share/www/script | |
parent | 55ee8c7f9188443900c52a69ae408bcf457be62a (diff) |
fix to submit temp view src as json
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@657930 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script')
-rw-r--r-- | share/www/script/jquery.couch.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/share/www/script/jquery.couch.js b/share/www/script/jquery.couch.js index 00090619..695b0f11 100644 --- a/share/www/script/jquery.couch.js +++ b/share/www/script/jquery.couch.js @@ -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) { |