]> git.wh0rd.org Git - tt-rss.git/commitdiff
editFeedDlg: fix hotkey disabling bug
authorAndrew Dolgov <fox@bah.spb.su>
Wed, 20 Feb 2008 12:45:57 +0000 (13:45 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Wed, 20 Feb 2008 12:45:57 +0000 (13:45 +0100)
functions.js
tt-rss.js

index 3d3b34b38d518e6baa651b5bc34fff2fd7af93d8..b41cd73abaa13e270010ede9d211306059912b61 100644 (file)
@@ -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;
index c1a812aa5a2e03b72b051009937885f70dc81410..a4588c347806e6f4aa6cc34e39c93571a6cc9d28 100644 (file)
--- 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);