diff options
author | Andrew Dolgov <[email protected]> | 2009-10-13 19:05:52 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-10-13 19:05:52 +0400 |
commit | e9a174b1212fb932c399d01346ff0a12f03e1b38 (patch) | |
tree | 27eb4d47c339adae13e9ab599c38fb983358b043 /functions.js | |
parent | 732a6197b4c33ef2797da0f245b09c643dc4cc67 (diff) | |
parent | 37e93d6ccae51c283f3b480195016d749ecab1a5 (diff) |
Merge branch 'master' of bah.org.ru:public_html/testbox/tt-rss
Diffstat (limited to 'functions.js')
-rw-r--r-- | functions.js | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/functions.js b/functions.js index 22490fd1c..fcfddaa52 100644 --- a/functions.js +++ b/functions.js @@ -532,7 +532,7 @@ function parse_counters(reply, scheduled_call) { if (feedctr && feedu && feedr) { if (feedu.innerHTML != ctr && id == getActiveFeedId() && scheduled_call) { - viewCurrentFeed(); + displayNewContentPrompt(id); } var row_needs_hl = (ctr > 0 && ctr > parseInt(feedu.innerHTML)); @@ -2194,4 +2194,25 @@ function hotkey_prefix_timeout() { } } +function hideAuxDlg() { + try { + Element.hide('auxDlg'); + } catch (e) { + exception_error("hideAuxDlg", e); + } +} + +function displayNewContentPrompt(id) { + try { + var msg = __("New articles in «%s». <a href='#' onclick='viewCurrentFeed()'>Click to view</a>."); + msg = msg.replace("%s", getFeedName(id)); + + $('auxDlg').innerHTML = msg; + + Element.show('auxDlg'); + + } catch (e) { + exception_error("displayNewContentPrompt", e); + } +} |