Project

General

Profile

Bug #18455 » 7873_wrong_ie6_condition.diff

Administrator Admin, 2008-03-16 12:18

View differences:

typo3/template.php (working copy)
function resizeDocBody() {
$("typo3-docbody").style.height = (document.body.offsetHeight - parseInt($("typo3-docheader").getStyle("height")));
}
if (/MSIE 6/.test(navigator.userAgent)) {
Event.observe(window, "resize", resizeDocBody, false);
Event.observe(window, "load", resizeDocBody, false);
if (Prototype.Browser.IE) {
var version = parseFloat(navigator.appVersion.split(';')[1].strip().split(' ')[1]);
if (version == 6) {
Event.observe(window, "resize", resizeDocBody, false);
Event.observe(window, "load", resizeDocBody, false);
}
}
');
// Get the page path for the docheader
(1-1/2)