]> git.wh0rd.org - tt-rss.git/commitdiff
parse_counters: enable feed icons on the fly
authorAndrew Dolgov <fox@bah.spb.su>
Fri, 17 Aug 2007 16:15:14 +0000 (17:15 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Fri, 17 Aug 2007 16:15:14 +0000 (17:15 +0100)
functions.js
functions.php

index db3332d6679c968484eb871838dfaf591b2b759a..5999673bcface20bdba1dc43dc869e1cf795f2c0 100644 (file)
@@ -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) {
index 01618abd89d85e07505c46c02318c4d2d1e19711..0f9694edac0d0afb9381ee13c912499b04301d4e 100644 (file)
                print "<param key=\"infobox_disable_overlay\" value=\"" . 
                        get_pref($link, "_INFOBOX_DISABLE_OVERLAY") . "\"/>";
 
+               print "<param key=\"icons_location\" value=\"" . 
+                       ICONS_URL . "\"/>";
+
                print "</init-params>";
        }