summaryrefslogtreecommitdiff
path: root/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-05-19 12:28:20 +0100
committerAndrew Dolgov <[email protected]>2008-05-19 12:28:20 +0100
commit8836613c437e5ff3f0bc86cb1754756a1b7ba6cb (patch)
treeb824dfd80b302b88696809a383d47c66aee23af7 /prefs.js
parent19d7bfcd1dd95d121ba30db21e068d200132b97d (diff)
debug mode tweaks, remove mouse_handler()
Diffstat (limited to 'prefs.js')
-rw-r--r--prefs.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/prefs.js b/prefs.js
index 698bc7163..41b4d7688 100644
--- a/prefs.js
+++ b/prefs.js
@@ -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;
}