summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-10-14 15:46:06 +0400
committerAndrew Dolgov <[email protected]>2009-10-14 15:46:06 +0400
commit36a3673cfeacb8c87b92173635abb7913ae0f531 (patch)
tree393e6927cd07c90d61509c07ba5f0ed18c48feeb /functions.js
parente8188aa667036280e4142919c36f944a17c08d94 (diff)
parent7c057b1a2a824410cd1c6886b74c337c2524fad7 (diff)
Merge branch 'master' of /home/fox/public_html/testbox/tt-rss
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/functions.js b/functions.js
index 27823adc9..db2b4a887 100644
--- a/functions.js
+++ b/functions.js
@@ -531,7 +531,10 @@ function parse_counters(reply, scheduled_call) {
if (feedctr && feedu && feedr) {
- if (parseInt(ctr) > 0 && feedu.innerHTML != ctr && id == getActiveFeedId() && scheduled_call) {
+ if (parseInt(ctr) > 0 &&
+ parseInt(feedu.innerHTML) < parseInt(ctr) &&
+ id == getActiveFeedId() && scheduled_call) {
+
displayNewContentPrompt(id);
}
@@ -2204,7 +2207,8 @@ function hideAuxDlg() {
function displayNewContentPrompt(id) {
try {
- var msg = __("New articles in &laquo;%s&raquo;. <a href='#' onclick='viewCurrentFeed()'>Click to view</a>.");
+ var msg = __("New articles in &laquo;%s&raquo;.") +
+ " <a href='#' onclick='viewfeed("+id+")'>" + __('Click to view') + "</a>.";
msg = msg.replace("%s", getFeedName(id));