1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 19:15:56 +00:00

js: add get_feed_unread()

This commit is contained in:
Andrew Dolgov
2007-11-22 06:05:24 +01:00
parent 1eea0e851a
commit 8e9dd206ef
2 changed files with 11 additions and 3 deletions

View File

@@ -778,6 +778,15 @@ function all_counters_callback2(transport) {
}
}
function get_feed_unread(id) {
try {
return parseInt(document.getElementById("FEEDU-" + id).innerHTML);
} catch (e) {
exception_error("get_feed_unread", e, true);
return -1;
}
}
function get_feed_entry_unread(doc, elem) {
var id = elem.id.replace("FEEDR-", "");