diff options
author | Andrew Dolgov <[email protected]> | 2013-03-21 18:01:42 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-03-21 18:01:42 +0400 |
commit | 16314ddafe88b6c214892799a5da354e2188524c (patch) | |
tree | b6e2ddcbbc0d53b1201f5e60d143d4f434037d3b /js | |
parent | 2ccc7b8e07d584f85e4f5d4477d554de31a15272 (diff) |
implement basic auto-reload on some dependent file timestamp changing
Diffstat (limited to 'js')
-rw-r--r-- | js/tt-rss.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/tt-rss.js b/js/tt-rss.js index 77bb5117c..ed5e01d4b 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -446,6 +446,12 @@ function parse_runtime_info(data) { return; } + if (k == "dep_ts" && parseInt(getInitParam("dep_ts")) > 0) { + if (parseInt(getInitParam("dep_ts")) < parseInt(v)) { + window.location.reload(); + } + } + if (k == "daemon_is_running" && v != 1) { notify_error("<span onclick=\"javascript:explainError(1)\">Update daemon is not running.</span>", true); return; |