diff options
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) { |