summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-04-23 10:00:09 +0100
committerAndrew Dolgov <[email protected]>2007-04-23 10:00:09 +0100
commite12a547eb956881a5fe0f3a91be9f7172dfb3546 (patch)
tree69723cd94e9d1d6a2d2b9a2d63441ef0c3e92b6a
parenta3df793b88998e3fa6e43f3fc24c274958394aef (diff)
block resize_headlines in MSIE: broken
-rw-r--r--functions.js4
-rw-r--r--tt-rss.js7
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"];