From: Andrew Dolgov Date: Mon, 23 Apr 2007 09:00:09 +0000 (+0100) Subject: block resize_headlines in MSIE: broken X-Git-Tag: schema_freeze_for_1.2.11~103 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e12a547eb956881a5fe0f3a91be9f7172dfb3546;p=tt-rss.git block resize_headlines in MSIE: broken --- diff --git a/functions.js b/functions.js index 608284dc..e7e211ed 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"); } diff --git a/tt-rss.js b/tt-rss.js index 4b2f3ece..2e884d58 100644 --- 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"];