diff options
author | Christopher Lenz <cmlenz@apache.org> | 2008-05-23 13:38:01 +0000 |
---|---|---|
committer | Christopher Lenz <cmlenz@apache.org> | 2008-05-23 13:38:01 +0000 |
commit | 87e11f55ecf0c87bdd36906bf7d662cd091cf3e6 (patch) | |
tree | b6d117ee770c799540a870df78077a38a6c50c52 /share/www/script | |
parent | be2c4f871ab7186fa25fa3f3b42e7169cd5c9a10 (diff) |
Fix 'save as' for map/reduce views in Futon.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@659537 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script')
-rw-r--r-- | share/www/script/browse.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/www/script/browse.js b/share/www/script/browse.js index 6b8546ac..ebf3916f 100644 --- a/share/www/script/browse.js +++ b/share/www/script/browse.js @@ -154,7 +154,7 @@ function CouchDatabasePage() { } }, 100); } - $("#viewcode_map").bind("input", updateDirtyState); + $("#viewcode textarea").bind("input", updateDirtyState); if ($.browser.msie) { // sorry, browser detection $("#viewcode textarea").get(0).onpropertychange = updateDirtyState } else if ($.browser.safari) { @@ -279,7 +279,7 @@ function CouchDatabasePage() { } else { var viewCode = { map: $("#viewcode_map").val(), - reduce: $("#viewcode_map").val() || undefined + reduce: $("#viewcode_reduce").val() || undefined }; var docId = ["_design", data.docid].join("/"); function save(doc) { |