display current feed in title (only in daemon mode for now)
This commit is contained in:
parent
9da1e3be20
commit
dcca5d13a0
|
@ -1549,6 +1549,7 @@
|
|||
|
||||
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 && 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue