summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-29 14:09:47 +0100
committerAndrew Dolgov <[email protected]>2005-11-29 14:09:47 +0100
commit806a3d146d145d378e4dc330d4fe1085a5eb8079 (patch)
tree8b9cbeb98fe04474d76abf4a53b8f3d648882316 /tt-rss.js
parented027ba5cf12b0938268a363c960ade8b197f1d3 (diff)
show number of unread articles in title
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/tt-rss.js b/tt-rss.js
index a2910451e..bb0f13c79 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -5,7 +5,7 @@ var first_run = true;
var display_tags = false;
-var global_unread = 0;
+var global_unread = -1;
var active_title_text = "";
@@ -93,12 +93,10 @@ function refetch_callback() {
var feedu = f_document.getElementById("FEEDU-" + id);
var feedr = f_document.getElementById("FEEDR-" + id);
- /* TODO figure out how to update this from viewfeed.js->view()
- disabled for now...
-
if (id == "global-unread") {
global_unread = ctr;
- } */
+ continue;
+ }
if (feedctr && feedu && feedr) {
@@ -318,6 +316,8 @@ function localHotkeyHandler(keycode) {
}
+// if argument is undefined, current subtitle is not updated
+// use blank string to clear subtitle
function updateTitle(s) {
var tmp = "Tiny Tiny RSS";