]> git.wh0rd.org Git - tt-rss.git/commitdiff
viewCurrentFeed() usage cleanup
authorAndrew Dolgov <fox@fakecake.org>
Fri, 12 Nov 2010 18:43:59 +0000 (21:43 +0300)
committerAndrew Dolgov <fox@fakecake.org>
Fri, 12 Nov 2010 18:43:59 +0000 (21:43 +0300)
tt-rss.js

index e8384123214c5246fb0bc3fab060f290cc0881b7..9ab2d353a969e0b1a9d9fdb5207644d8767f761f 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -149,20 +149,12 @@ function catchupAllFeeds() {
 
 function viewCurrentFeed(subop) {
 
-//     if (getActiveFeedId()) {
        if (getActiveFeedId() != undefined) {
                viewfeed(getActiveFeedId(), subop, activeFeedIsCat());
-       } else {
-//             viewfeed(-1, subop); // FIXME
        }
        return false; // block unneeded form submits
 }
 
-/*function viewfeed(feed, subop) {
-       var f = window.frames["feeds-frame"];
-       f.viewfeed(feed, subop);
-} */
-
 function timeout() {
        if (getInitParam("bw_limit") == "1") return;
 
@@ -754,12 +746,12 @@ function collapse_feedlist() {
 
 function viewModeChanged() {
        cache_flush();
-       return viewCurrentFeed(0, '')
+       return viewCurrentFeed('')
 }
 
 function viewLimitChanged() {
        cache_flush();
-       return viewCurrentFeed(0, '')
+       return viewCurrentFeed('')
 }
 
 /* function adjustArticleScore(id, score) {