remove cat_view_mode

This commit is contained in:
Andrew Dolgov 2006-08-01 13:46:48 +01:00
parent afc00eb54f
commit c0ea08b0be
1 changed files with 4 additions and 11 deletions

View File

@ -1,15 +1,12 @@
var xmlhttp = Ajax.getTransport(); var xmlhttp = Ajax.getTransport();
var cat_view_mode = false;
function viewCategory(cat) { function viewCategory(cat) {
getMainContext().active_feed_is_cat = true;
viewfeed(cat, 0, '', false, true); viewfeed(cat, 0, '', false, true);
} }
function viewfeed(feed, skip, subop, doc, is_cat, subop_param) { function viewfeed(feed, skip, subop, doc, is_cat, subop_param) {
try { try {
if (!doc) doc = parent.document;
enableHotkeys(); enableHotkeys();
@ -43,11 +40,7 @@ function viewfeed(feed, skip, subop, doc, is_cat, subop_param) {
parent.closeInfoBox(true); parent.closeInfoBox(true);
} }
// if (getActiveFeedId() != feed) { debug("CVMODE: " + activeFeedIsCat());
cat_view_mode = is_cat;
// }
debug("CVMODE: " + cat_view_mode);
var fe = document.getElementById("FEEDR-" + getActiveFeedId()); 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"; query = query + "&cat=1";
} }
@ -104,7 +97,7 @@ function viewfeed(feed, skip, subop, doc, is_cat, subop_param) {
// cleanSelectedList("feedList"); // cleanSelectedList("feedList");
if (!cat_view_mode) { if (!activeFeedIsCat()) {
var feedr = document.getElementById("FEEDR-" + getActiveFeedId()); var feedr = document.getElementById("FEEDR-" + getActiveFeedId());
if (feedr && !feedr.className.match("Selected")) { if (feedr && !feedr.className.match("Selected")) {
feedr.className = feedr.className + "Selected"; feedr.className = feedr.className + "Selected";