diff options
author | Christopher Lenz <cmlenz@apache.org> | 2009-01-15 08:53:25 +0000 |
---|---|---|
committer | Christopher Lenz <cmlenz@apache.org> | 2009-01-15 08:53:25 +0000 |
commit | f815fc6cca11d6119a5cb788821957cdcba1a567 (patch) | |
tree | b353e75d217ceac1b24db1856b456a53bbb82e0b /share/www/script/futon.browse.js | |
parent | 28b6fb6dfbce96e6992591a1287bdf39c735f414 (diff) |
Fix bug in test runner triggered by upgrade to jQuery 1.3.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@734633 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/futon.browse.js')
-rw-r--r-- | share/www/script/futon.browse.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/share/www/script/futon.browse.js b/share/www/script/futon.browse.js index b85e8691..0ff86f94 100644 --- a/share/www/script/futon.browse.js +++ b/share/www/script/futon.browse.js @@ -205,6 +205,16 @@ $.cookies.get(db.name + ".reduce", "") ); } + $("#viewcode textarea").change(function() { + if (page.viewLanguage == "javascript") { + try { + var func = eval("(" + $(this).val() + ")"); + $(this).removeClass("invalid").next(".error").remove(); + } catch (err) { + $(this).addClass("invalid").data("error", err.message); + } + } + }); page.populateLanguagesMenu(); } |