summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-11 12:19:28 +0300
committerAndrew Dolgov <[email protected]>2010-11-11 12:19:28 +0300
commit5ae8f858a96c5cee498202ac372fe02aba9198b1 (patch)
treeec2bd533ef42fa95337160352c6a59aa30a28569 /tt-rss.js
parent3505baeb1404bd8cd0e8b491cad7dc87620c5064 (diff)
fix frontend not knowing about always expanded cdm
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js15
1 files changed, 5 insertions, 10 deletions
diff --git a/tt-rss.js b/tt-rss.js
index 841d4b337..917196ba9 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -556,10 +556,6 @@ function parse_runtime_info(elem) {
// console.log("RI: " + k + " => " + v);
- if (k == "num_feeds" || k == "last_article_id") {
- init_params[k] = v;
- }
-
if (k == "new_version_available") {
var icon = $("newVersionIcon");
if (icon) {
@@ -569,24 +565,23 @@ function parse_runtime_info(elem) {
icon.style.display = "none";
}
}
+ return;
}
var error_flag;
if (k == "daemon_is_running" && v != 1) {
notify_error("<span onclick=\"javascript:explainError(1)\">Update daemon is not running.</span>", true);
- error_flag = true;
+ return;
}
if (k == "daemon_stamp_ok" && v != 1) {
notify_error("<span onclick=\"javascript:explainError(3)\">Update daemon is not updating feeds.</span>", true);
- error_flag = true;
+ return;
}
- if (!error_flag) {
- notify('');
- }
-
+ init_params[k] = v;
+ notify('');
}
}