mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 10:25:56 +00:00
only request total counters on initial update request
This commit is contained in:
15
tt-rss.js
15
tt-rss.js
@@ -7,6 +7,7 @@ var active_title_text = "";
|
||||
var current_subtitle = "";
|
||||
var daemon_enabled = false;
|
||||
var _qfd_deleted_feed = 0;
|
||||
var firsttime_update = true;
|
||||
|
||||
/*@cc_on @*/
|
||||
/*@if (@_jscript_version >= 5)
|
||||
@@ -184,15 +185,21 @@ function scheduleFeedUpdate(force) {
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user