From: Andrew Dolgov Date: Tue, 1 Aug 2006 12:46:48 +0000 (+0100) Subject: remove cat_view_mode X-Git-Tag: schema_freeze_for_1.2.2~36 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c0ea08b0beafdeb0b17781d296cf6ea188227fa9;p=tt-rss.git remove cat_view_mode --- diff --git a/feedlist.js b/feedlist.js index 2314b065..7729da92 100644 --- a/feedlist.js +++ b/feedlist.js @@ -1,15 +1,12 @@ var xmlhttp = Ajax.getTransport(); -var cat_view_mode = false; - function viewCategory(cat) { + getMainContext().active_feed_is_cat = true; viewfeed(cat, 0, '', false, true); } function viewfeed(feed, skip, subop, doc, is_cat, subop_param) { try { - - if (!doc) doc = parent.document; enableHotkeys(); @@ -43,11 +40,7 @@ function viewfeed(feed, skip, subop, doc, is_cat, subop_param) { parent.closeInfoBox(true); } -// if (getActiveFeedId() != feed) { - cat_view_mode = is_cat; -// } - - debug("CVMODE: " + cat_view_mode); + debug("CVMODE: " + activeFeedIsCat()); var fe = document.getElementById("FEEDR-" + getActiveFeedId()); @@ -86,7 +79,7 @@ function viewfeed(feed, skip, subop, doc, is_cat, subop_param) { } } - if (cat_view_mode) { + if (activeFeedIsCat()) { query = query + "&cat=1"; } @@ -104,7 +97,7 @@ function viewfeed(feed, skip, subop, doc, is_cat, subop_param) { // cleanSelectedList("feedList"); - if (!cat_view_mode) { + if (!activeFeedIsCat()) { var feedr = document.getElementById("FEEDR-" + getActiveFeedId()); if (feedr && !feedr.className.match("Selected")) { feedr.className = feedr.className + "Selected";