]> git.wh0rd.org Git - tt-rss.git/commitdiff
UNDO: display current feed in title (only in daemon mode for now)
authorAndrew Dolgov <fox@bah.spb.su>
Sun, 12 Feb 2006 08:33:07 +0000 (09:33 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sun, 12 Feb 2006 08:33:07 +0000 (09:33 +0100)
backend.php
tt-rss.js

index 28026bd1b1740ccb5518394e41a95d1326382c8d..16705f47a26800a45b0e7a61739e7743a0b87bed 100644 (file)
 
                print "<script type=\"text/javascript\">
                        document.onkeydown = hotkey_handler;
-                       if (parent.daemon_enabled) parent.updateTitle('$feed_title');
                        update_all_counters('$feed');
                </script>";
        
index 1e5573f902226b98567c741639b7c28ec5fb466a..961c6df495b0c96855e779ff2f9c24dd3150c207 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -342,7 +342,7 @@ function localHotkeyHandler(keycode) {
 function updateTitle(s) {
        var tmp = "Tiny Tiny RSS";
 
-       if (s != undefined) {
+       if (s && s.length > 0) {
                current_subtitle = s;
        }
 
@@ -350,7 +350,7 @@ function updateTitle(s) {
                tmp = tmp + " (" + global_unread + ")";
        }
 
-       if (current_subtitle) {
+       if (s) {
                tmp = tmp + " - " + current_subtitle;
        }