1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-23 18:51:28 +00:00

debug mode tweaks, remove mouse_handler()

This commit is contained in:
Andrew Dolgov
2008-05-19 12:28:20 +01:00
parent 19d7bfcd1d
commit 8836613c43
8 changed files with 12 additions and 53 deletions

View File

@@ -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;
}