From c67d2990c7a54a6379fe2a134f947555461109bc Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 20 Feb 2008 13:45:57 +0100 Subject: [PATCH] editFeedDlg: fix hotkey disabling bug --- functions.js | 5 ++++- tt-rss.js | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/functions.js b/functions.js index 3d3b34b3..b41cd73a 100644 --- a/functions.js +++ b/functions.js @@ -209,7 +209,10 @@ function hotkey_handler(e) { } - if (!hotkeys_enabled) return; + if (!hotkeys_enabled) { + debug("hotkeys disabled"); + return; + } if (window.event) { keycode = window.event.keyCode; diff --git a/tt-rss.js b/tt-rss.js index c1a812aa..a4588c34 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -634,8 +634,6 @@ function catchupCurrentFeed() { function editFeedDlg(feed) { try { - disableHotkeys(); - if (!feed) { alert(__("Please select some feed first.")); return; @@ -653,7 +651,9 @@ function editFeedDlg(feed) { } else { query = "backend.php?op=pref-labels&subop=edit&id=" + param_escape(-feed-11); } - + + disableHotkeys(); + new Ajax.Request(query, { onComplete: function(transport) { infobox_callback2(transport); -- 2.39.5