]> git.wh0rd.org Git - tt-rss.git/commitdiff
null category fixes
authorAndrew Dolgov <fox@bah.spb.su>
Tue, 1 Aug 2006 12:57:34 +0000 (13:57 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Tue, 1 Aug 2006 12:57:34 +0000 (13:57 +0100)
tt-rss.js

index 9ac5220fea88ecca931b6d4d2e4b298101b21083..4f12aeee79b50a46ced586a2de8d670a26648c0c 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -207,7 +207,7 @@ function updateFeedList(silent, fetch) {
                query_str = query_str + "&tags=1";
        }
 
-       if (getActiveFeedId()) {
+       if (getActiveFeedId() != undefined) {
                query_str = query_str + "&actid=" + getActiveFeedId();
        }
 
@@ -241,11 +241,12 @@ function catchupAllFeeds() {
 
 function viewCurrentFeed(subop) {
 
-       if (getActiveFeedId()) {
+//     if (getActiveFeedId()) {
+       if (getActiveFeedId() != undefined) {
                viewfeed(getActiveFeedId(), subop);
        } else {
                disableContainerChildren("headlinesToolbar", false, document);
-               viewfeed(-1, subop); // FIXME
+//             viewfeed(-1, subop); // FIXME
        }
        return false; // block unneeded form submits
 }
@@ -446,7 +447,7 @@ function quickMenuGo(opid) {
                if (opid == "qmcRemoveFeed") {
                        var actid = getActiveFeedId();
        
-                       if (!actid) {
+                       if (actid == undefined) {
                                alert("Please select some feed first.");
                                return;
                        }