block resize_headlines in MSIE: broken

This commit is contained in:
Andrew Dolgov 2007-04-23 10:00:09 +01:00
parent a3df793b88
commit e12a547eb9
2 changed files with 8 additions and 3 deletions

View File

@ -7,6 +7,10 @@ function browser_has_opacity() {
navigator.userAgent.match("Opera") != null; navigator.userAgent.match("Opera") != null;
} }
function is_msie() {
return navigator.userAgent.match("MSIE");
}
function is_opera() { function is_opera() {
return navigator.userAgent.match("Opera"); return navigator.userAgent.match("Opera");
} }

View File

@ -397,9 +397,10 @@ function init_second_stage() {
delCookie("ttrss_vf_test"); delCookie("ttrss_vf_test");
if (!is_msie()) {
document.onresize = resize_headlines; document.onresize = resize_headlines;
resize_headlines(); resize_headlines();
}
var toolbar = document.forms["main_toolbar_form"]; var toolbar = document.forms["main_toolbar_form"];