$omode = $_GET["omode"];
- if (!$omode) $omode = "tfl";
+ if (!$omode) $omode = "tflc";
if (strchr($omode, "l")) getLabelCounters($link);
if (strchr($omode, "f")) getFeedCounters($link);
if (strchr($omode, "t")) getTagCounters($link);
- if (get_pref($link, 'ENABLE_FEED_CATS')) {
- getCategoryCounters($link);
- }
+ if (strchr($omode, "c")) {
+ if (get_pref($link, 'ENABLE_FEED_CATS')) {
+ getCategoryCounters($link);
+ }
+ }
}
getGlobalCounters($link, $global_unread);
try {
hideOrShowFeeds(document, getCookie("ttrss_vf_hreadf") == 1);
document.onkeydown = hotkey_handler;
- parent.setTimeout("timeout()", 1000);
+ parent.setTimeout("timeout()", 0);
} catch (e) {
exception_error("feedlist/init", e);
}
var current_subtitle = "";
var daemon_enabled = false;
var _qfd_deleted_feed = 0;
+var firsttime_update = true;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
var omode;
- if (display_tags) {
- omode = "t";
+ if (firsttime_update) {
+ firsttime_update = false;
+ omode = "T";
} else {
- omode = "fl";
+ if (display_tags) {
+ omode = "t";
+ } else {
+ omode = "flc";
+ }
}
-
+
query_str = query_str + "&omode=" + omode;
query_str = query_str + "&uctr=" + global_unread;
+
if (xmlhttp_ready(xmlhttp)) {
xmlhttp.open("GET", query_str, true);
xmlhttp.onreadystatechange=refetch_callback;