]> git.wh0rd.org Git - tt-rss.git/commitdiff
block resize_headlines in MSIE: broken
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 23 Apr 2007 09:00:09 +0000 (10:00 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 23 Apr 2007 09:00:09 +0000 (10:00 +0100)
functions.js
tt-rss.js

index 608284dc40973b3ed18e2873aecf18c85437cd33..e7e211edde0baba5516336308af002553c709984 100644 (file)
@@ -7,6 +7,10 @@ function browser_has_opacity() {
                navigator.userAgent.match("Opera") != null;
 }
 
+function is_msie() {
+       return navigator.userAgent.match("MSIE");
+}
+
 function is_opera() {
        return navigator.userAgent.match("Opera");
 }
index 4b2f3eceb474f434c6c31b8549c43f3dd7885217..2e884d587b555739f1adba31f0d6646ef023844b 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -397,9 +397,10 @@ function init_second_stage() {
 
                delCookie("ttrss_vf_test");
        
-               document.onresize = resize_headlines;
-
-               resize_headlines();
+               if (!is_msie()) {
+                       document.onresize = resize_headlines;
+                       resize_headlines();
+               }
 
                var toolbar = document.forms["main_toolbar_form"];