]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix feedlist init for IE
authorAndrew Dolgov <fox@bah.spb.su>
Tue, 20 Dec 2005 15:49:52 +0000 (16:49 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Tue, 20 Dec 2005 15:49:52 +0000 (16:49 +0100)
feedlist.js
functions.js

index c58dff61012cb72fb50924837d8711776652ca52..2e1d5eb5ffeeb00a952850dca6398984a016927a 100644 (file)
@@ -197,6 +197,6 @@ function init() {
                document.onkeydown = hotkey_handler;
                parent.setTimeout("timeout()", 1000);
        } catch (e) {
-               exception_error("feedlist/init()", e);
+               exception_error("feedlist/init", e);
        }
 }
index 2764a5bb28db7cbc9557a3ab03db9c88ee285234..e0ddfff12f3a142fe7efb1217dcd87941e16273b 100644 (file)
@@ -496,6 +496,8 @@ function hideOrShowFeeds(doc, hide) {
 
        var css_rules = doc.styleSheets[0].cssRules;
 
+       if (!css_rules || !css_rules.length) return;
+
        for (i = 0; i < css_rules.length; i++) {
                var rule = css_rules[i];