]> git.wh0rd.org - tt-rss.git/blobdiff - js/tt-rss.js
unpackVisibleHeadlines: do nothing if not in cdm
[tt-rss.git] / js / tt-rss.js
index 77bb5117c52be2145653dc781716caa433c2803f..eaa1f3daf30852b3f913afb12e7eb6b1dbbb8363 100644 (file)
@@ -181,7 +181,7 @@ function updateTitle() {
        var tmp = "Tiny Tiny RSS";
 
        if (global_unread > 0) {
-               tmp = tmp + " (" + global_unread + ")";
+               tmp = "(" + global_unread + ") " + tmp;
        }
 
        if (window.fluid) {
@@ -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;
@@ -936,6 +942,8 @@ function handle_rpc_json(transport, scheduled_call) {
 
 function switchPanelMode(wide) {
        try {
+               if (isCdmMode()) return;
+
                article_id = getActiveArticleId();
 
                if (wide) {