diff options
author | Andrew Dolgov <[email protected]> | 2007-04-23 10:00:09 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-04-23 10:00:09 +0100 |
commit | e12a547eb956881a5fe0f3a91be9f7172dfb3546 (patch) | |
tree | 69723cd94e9d1d6a2d2b9a2d63441ef0c3e92b6a | |
parent | a3df793b88998e3fa6e43f3fc24c274958394aef (diff) |
block resize_headlines in MSIE: broken
-rw-r--r-- | functions.js | 4 | ||||
-rw-r--r-- | tt-rss.js | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/functions.js b/functions.js index 608284dc4..e7e211edd 100644 --- a/functions.js +++ b/functions.js @@ -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"); } @@ -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"]; |