//var xmlhttp = Ajax.getTransport(); function viewCategory(cat) { active_feed_is_cat = true; viewfeed(cat, '', true); } function feedlist_callback() { if (xmlhttp.readyState == 4) { debug("feedlist_callback"); var f = document.getElementById("feeds-frame"); f.innerHTML = xmlhttp.responseText; feedlist_init(); } } function viewfeed(feed, subop, is_cat, subop_param) { try { enableHotkeys(); var toolbar_query = Form.serialize("main_toolbar_form"); var toolbar_form = document.forms["main_toolbar_form"]; if (document.forms["main_toolbar_form"].query) { toolbar_form.query.value = ""; } storeInitParam("toolbar_limit", toolbar_form.limit[toolbar_form.limit.selectedIndex].value); storeInitParam("toolbar_view_mode", toolbar_form.view_mode[toolbar_form.view_mode.selectedIndex].value); var query = "backend.php?op=viewfeed&feed=" + feed + "&" + toolbar_query + "&subop=" + param_escape(subop); if (document.getElementById("search_form")) { var search_query = Form.serialize("search_form"); query = query + "&" + search_query; closeInfoBox(true); } debug("IS_CAT_STORED: " + activeFeedIsCat() + ", IS_CAT: " + is_cat); var fe = document.getElementById("FEEDR-" + getActiveFeedId()); if (fe) { fe.className = fe.className.replace("Selected", ""); } setActiveFeedId(feed); if (is_cat != undefined) { active_feed_is_cat = is_cat; } if (subop == "MarkAllRead") { var feedlist = document.getElementById('feedList'); var next_unread_feed = getRelativeFeedId(feedlist, getActiveFeedId(), "next", true); var show_next_feed = getInitParam("on_catchup_show_next_feed") == "1"; if (next_unread_feed && show_next_feed && !activeFeedIsCat()) { query = query + "&nuf=" + param_escape(next_unread_feed); setActiveFeedId(next_unread_feed); } } if (activeFeedIsCat()) { query = query + "&cat=1"; } if (navigator.userAgent.match("Opera")) { var date = new Date(); var timestamp = Math.round(date.getTime() / 1000); query = query + "&ts=" + timestamp } if (!activeFeedIsCat()) { var feedr = document.getElementById("FEEDR-" + getActiveFeedId()); if (feedr && !feedr.className.match("Selected")) { feedr.className = feedr.className + "Selected"; } } disableContainerChildren("headlinesToolbar", false); Form.enable("main_toolbar_form"); debug(query); /* var container = document.getElementById("headlines-frame"); container.innerHTML = "