summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-08-17 17:15:14 +0100
committerAndrew Dolgov <[email protected]>2007-08-17 17:15:14 +0100
commit527c3bf0221b28973dbd668e92ab9f91578914d2 (patch)
tree353ecabd2821c46d25cb10abaf288d863c942177
parent70dcff6b3d681bbeae4b9536139426d6d60a46bd (diff)
parse_counters: enable feed icons on the fly
-rw-r--r--functions.js4
-rw-r--r--functions.php3
2 files changed, 7 insertions, 0 deletions
diff --git a/functions.js b/functions.js
index db3332d66..5999673bc 100644
--- a/functions.js
+++ b/functions.js
@@ -681,6 +681,10 @@ function parse_counters(reply, scheduled_call) {
}
}
+ if (has_img && feed_img && !is_msie()) {
+ feed_img.src = getInitParam("icons_location") + "/" + id + ".ico";
+ }
+
if (feedctr && feedu && feedr) {
if (feedu.innerHTML != ctr && id == getActiveFeedId() && scheduled_call) {
diff --git a/functions.php b/functions.php
index 01618abd8..0f9694eda 100644
--- a/functions.php
+++ b/functions.php
@@ -2412,6 +2412,9 @@
print "<param key=\"infobox_disable_overlay\" value=\"" .
get_pref($link, "_INFOBOX_DISABLE_OVERLAY") . "\"/>";
+ print "<param key=\"icons_location\" value=\"" .
+ ICONS_URL . "\"/>";
+
print "</init-params>";
}