]> git.wh0rd.org - tt-rss.git/commitdiff
fix several feed-related hotkeys working on Uncategorized
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 6 Nov 2012 14:08:52 +0000 (18:08 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 6 Nov 2012 14:08:52 +0000 (18:08 +0400)
js/tt-rss.js

index f83ba377780ea7bb3f1d11c8b57b58e8d37c8498..93aca682a12913f45ff186d5bdc62ec7be37bc7a 100644 (file)
@@ -862,14 +862,14 @@ function hotkey_handler(e) {
                        hotkey_prefix = false;
 
                        if (keycode == 81) { // q
-                               if (getActiveFeedId()) {
+                               if (getActiveFeedId() != undefined) {
                                        catchupCurrentFeed();
                                        return;
                                }
                        }
 
                        if (keycode == 82) { // r
-                               if (getActiveFeedId()) {
+                               if (getActiveFeedId() != undefined) {
                                        viewfeed(getActiveFeedId(), '', activeFeedIsCat());
                                        return;
                                }
@@ -881,7 +881,7 @@ function hotkey_handler(e) {
                        }
 
                        if (keycode == 85) { // u
-                               if (getActiveFeedId()) {
+                               if (getActiveFeedId() != undefined) {
                                        viewfeed(getActiveFeedId(), '');
                                        return false;
                                }
@@ -911,7 +911,7 @@ function hotkey_handler(e) {
                        }
 
                        if (keycode == 67) { // c
-                               if (getActiveFeedId()) {
+                               if (getActiveFeedId() != undefined) {
                                        catchupCurrentFeed();
                                        return false;
                                }