]> git.wh0rd.org - tt-rss.git/commitdiff
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 16705f47a26800a45b0e7a61739e7743a0b87bed..28026bd1b1740ccb5518394e41a95d1326382c8d 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 961c6df495b0c96855e779ff2f9c24dd3150c207..1e5573f902226b98567c741639b7c28ec5fb466a 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 && s.length > 0) {
+       if (s != undefined) {
                current_subtitle = s;
        }
 
@@ -350,7 +350,7 @@ function updateTitle(s) {
                tmp = tmp + " (" + global_unread + ")";
        }
 
-       if (s) {
+       if (current_subtitle) {
                tmp = tmp + " - " + current_subtitle;
        }