diff options
author | Andrew Dolgov <[email protected]> | 2008-05-19 12:28:20 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2008-05-19 12:28:20 +0100 |
commit | 8836613c437e5ff3f0bc86cb1754756a1b7ba6cb (patch) | |
tree | b824dfd80b302b88696809a383d47c66aee23af7 /prefs.js | |
parent | 19d7bfcd1dd95d121ba30db21e068d200132b97d (diff) |
debug mode tweaks, remove mouse_handler()
Diffstat (limited to 'prefs.js')
-rw-r--r-- | prefs.js | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -1447,7 +1447,7 @@ function init() { arguments.callee.done = true; if (getURLParam('debug')) { - document.getElementById('debug_output').style.display = 'block'; + Element.show("debug_output"); debug('debug mode activated'); } @@ -1743,14 +1743,12 @@ function pref_hotkey_handler(e) { if (!hotkey_prefix) { if (keycode == 68 && shift_key) { // d - if (!debug_mode_enabled) { - document.getElementById('debug_output').style.display = 'block'; + if (!Element.visible("debug_output")) { + Element.show("debug_output"); debug('debug mode activated'); } else { - document.getElementById('debug_output').style.display = 'none'; + Element.hide("debug_output"); } - - debug_mode_enabled = !debug_mode_enabled; return; } |