diff options
author | Andrew Dolgov <[email protected]> | 2006-02-12 09:33:07 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-02-12 09:33:07 +0100 |
commit | 5b857464f4628ec97ae52f77effa8618bdd1ecd6 (patch) | |
tree | faf17946dc4cd7eb9dd431ced981c4d2a71772b9 | |
parent | dcca5d13a0404ee3a7365cf4c5d55586559cb481 (diff) |
UNDO: display current feed in title (only in daemon mode for now)
-rw-r--r-- | backend.php | 1 | ||||
-rw-r--r-- | tt-rss.js | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/backend.php b/backend.php index 28026bd1b..16705f47a 100644 --- a/backend.php +++ b/backend.php @@ -1549,7 +1549,6 @@ print "<script type=\"text/javascript\"> document.onkeydown = hotkey_handler; - if (parent.daemon_enabled) parent.updateTitle('$feed_title'); update_all_counters('$feed'); </script>"; @@ -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; } |