summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/functions.js b/functions.js
index 5c0564897..8355deb04 100644
--- a/functions.js
+++ b/functions.js
@@ -458,6 +458,13 @@ function parse_counters(reply, scheduled_call) {
var xmsg = elems[l].getAttribute("xmsg");
if (id == "global-unread") {
+
+ if (ctr > global_unread) {
+ if (db && getInitParam("offline_enabled") == "1") {
+ window.setTimeout("update_offline_data(0)", 100);
+ }
+ }
+
global_unread = ctr;
updateTitle();
continue;