]> git.wh0rd.org Git - tt-rss.git/commitdiff
only replace feed icon when needed
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 18 Aug 2007 07:19:25 +0000 (08:19 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 18 Aug 2007 07:19:25 +0000 (08:19 +0100)
functions.js

index 5999673bcface20bdba1dc43dc869e1cf795f2c0..b5b8f7b635eb9f2968cb171e9458c20470374014 100644 (file)
@@ -682,7 +682,9 @@ function parse_counters(reply, scheduled_call) {
                        }
 
                        if (has_img && feed_img && !is_msie()) {
-                               feed_img.src = getInitParam("icons_location") + "/" + id + ".ico";
+                               if (!feed_img.src.match(id + ".ico")) {
+                                       feed_img.src = getInitParam("icons_location") + "/" + id + ".ico";
+                               }
                        }
 
                        if (feedctr && feedu && feedr) {