From 0cd6bb46f7d8b8c11a8704603f9816e9f78d1ec9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 12 Feb 2009 13:59:00 +0300 Subject: offline: automatically set version of manifest.json (using filemtime) --- functions.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'functions.js') 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; -- cgit v1.2.3