summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-11-22 06:05:24 +0100
committerAndrew Dolgov <[email protected]>2007-11-22 06:05:24 +0100
commit8e9dd206ef14823e0bd79662fdd02bf6b3159611 (patch)
tree5e11f3e4bab7a34927a419dd82958f88c0adc731 /functions.js
parent1eea0e851a0fc9257e07952f4f5096a4581ae991 (diff)
js: add get_feed_unread()
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/functions.js b/functions.js
index b093398a6..93c080dbc 100644
--- a/functions.js
+++ b/functions.js
@@ -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-", "");