1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 15:25:56 +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

@@ -338,7 +338,7 @@ function init() {
return;
if (getURLParam('debug')) {
document.getElementById('debug_output').style.display = 'block';
Element.show("debug_output");
debug('debug mode activated');
}
@@ -967,11 +967,11 @@ function 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");
}
return;
@@ -1407,18 +1407,3 @@ function hotkey_handler(e) {
exception_error("hotkey_handler", e);
}
}
function mouse_handler(e) {
try {
var r_mouse = false;
if (window.event) {
r_mouse = window.event.button == 2;
} else if (e) {
r_mouse = e.which == 3;
}
} catch (e) {
exception_error("mouse_handler", e);
}
}