From e12a547eb956881a5fe0f3a91be9f7172dfb3546 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 23 Apr 2007 10:00:09 +0100 Subject: [PATCH] block resize_headlines in MSIE: broken --- functions.js | 4 ++++ 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"); } diff --git a/tt-rss.js b/tt-rss.js index 4b2f3eceb..2e884d587 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"];