summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-25 09:20:32 +0100
committerAndrew Dolgov <[email protected]>2005-11-25 09:20:32 +0100
commit21703604b2754f19c17fb9a0229c03de5b6649ad (patch)
tree7638f36e8810ecef77f8f5e99aa3611952df2984 /tt-rss.js
parent747976de1dbdd25c9f494b26a02ca1b1c40aa71e (diff)
show tags in article view mode
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js26
1 files changed, 22 insertions, 4 deletions
diff --git a/tt-rss.js b/tt-rss.js
index 125479c34..14e4b4cee 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -12,6 +12,10 @@ var display_tags = false;
var global_unread = 0;
+var active_title_text = "";
+
+var current_subtitle = "";
+
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
@@ -171,7 +175,7 @@ function scheduleFeedUpdate(force) {
// document.title = "Tiny Tiny RSS - Updating...";
- updateTitle("Updating...");
+ updateTitle("Updating");
var query_str = "backend.php?op=rpc&subop=";
@@ -234,7 +238,7 @@ function catchupAllFeeds() {
feeds_frame.src = query_str;
global_unread = 0;
- updateTitle();
+ updateTitle("");
}
@@ -314,14 +318,23 @@ function localHotkeyHandler(keycode) {
function updateTitle(s) {
var tmp = "Tiny Tiny RSS";
-
+
+ if (s && s.length > 0) {
+ current_subtitle = s;
+ }
+
if (global_unread > 0) {
tmp = tmp + " (" + global_unread + ")";
}
if (s) {
- tmp = tmp + " - " + s;
+ tmp = tmp + " - " + current_subtitle;
}
+
+ if (active_title_text.length > 0) {
+ tmp = tmp + " > " + active_title_text;
+ }
+
document.title = tmp;
}
@@ -529,6 +542,11 @@ function allFeedsMenuGo() {
}
+function updateFeedTitle(t) {
+ active_title_text = t;
+ updateTitle();
+}
+
function toggleDispRead() {
var hide_read_feeds = (getCookie("ttrss_vf_hreadf") == 1);