diff --git a/feedlist.js b/feedlist.js index d324c6a80..caffc9387 100644 --- a/feedlist.js +++ b/feedlist.js @@ -184,7 +184,7 @@ function feedlist_init() { if (getActiveFeedId()) { debug("some feed is open on feedlist refresh, reloading"); setTimeout("viewCurrentFeed()", 100); - } + } } catch (e) { exception_error("feedlist/init", e); diff --git a/functions.js b/functions.js index a3a46a9c9..bde6098a3 100644 --- a/functions.js +++ b/functions.js @@ -782,6 +782,12 @@ function update_all_counters(feed) { query = query + "&aid=" + feed; } + if (tagsAreDisplayed()) { + query = query + "&omode=lt"; + } + + debug("update_all_counters QUERY: " + query); + xmlhttp_rpc.open("GET", query, true); xmlhttp_rpc.onreadystatechange=all_counters_callback; xmlhttp_rpc.send(null); diff --git a/functions.php b/functions.php index 7b5da022c..84b863e70 100644 --- a/functions.php +++ b/functions.php @@ -1480,13 +1480,26 @@ } } - function getAllCounters($link) { - getLabelCounters($link); + function getAllCounters($link, $omode = "tflc") { +/* getLabelCounters($link); getFeedCounters($link); getTagCounters($link); getGlobalCounters($link); if (get_pref($link, 'ENABLE_FEED_CATS')) { getCategoryCounters($link); + } */ + + if (!$omode) $omode = "tflc"; + + getGlobalCounters($link); + + if (strchr($omode, "l")) getLabelCounters($link); + if (strchr($omode, "f")) getFeedCounters($link); + if (strchr($omode, "t")) getTagCounters($link); + if (strchr($omode, "c")) { + if (get_pref($link, 'ENABLE_FEED_CATS')) { + getCategoryCounters($link); + } } } @@ -2727,28 +2740,28 @@ $owner_uid = $_SESSION["uid"]; + /* virtual feeds */ + + if (get_pref($link, 'ENABLE_FEED_CATS')) { + print "