summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-02-18 07:38:08 +0100
committerAndrew Dolgov <[email protected]>2006-02-18 07:38:08 +0100
commit2bf6e0a82456e479956b41c7f6dc9c9c26a3e728 (patch)
tree97bed84e762e19ca76f5b6eed8c6c9487eab58d2 /tt-rss.js
parentab5eb26fba38ca7880b4c0fa005c7a214ce3c71b (diff)
only request total counters on initial update request
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js15
1 files changed, 11 insertions, 4 deletions
diff --git a/tt-rss.js b/tt-rss.js
index cfebd101b..0fbced1b9 100644
--- a/tt-rss.js
+++ b/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;