Project

General

Profile

Bug #18420 » stupid_IE6_fix.diff

Administrator Admin, 2008-03-14 11:39

View differences:

typo3/backend.php (working copy)
'js/sizemanager.js',
'js/toolbarmanager.js',
'js/modulemenu.js',
'js/iecompatibility.js',
'../t3lib/jsfunc.evalfield.js'
);
typo3/js/iecompatibility.js (working copy)
***************************************************************/
Element.addMethods({
pngHack: function(el) {
var el = $(el);
var transparentGifPath = 'clear.gif';
if(el.src.endsWith('.png')) {
/* if it's an img and a png */
var alphaImgSrc = el.src;
var sizingMethod = 'scale';
el.src = transparentGifPath;
}
if(alphaImgSrc) {
el.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="#{alphaImgSrc}",sizingMethod="#{sizingMethod}")'.interpolate(
{
alphaImgSrc: alphaImgSrc,
sizingMethod: sizingMethod
});
}
return el;
}
});
var IECompatibility = Class.create({
/**
......
Event.observe(document, 'dom:loaded', function() {
$$('input[type="checkbox"]').invoke('addClassName', 'checkbox');
}.bind(this));
Event.observe(window, 'load', function() {
if(/MSIE 6/.test(navigator.userAgent)) {
$$('img').each(function(img){
img.pngHack();
});
}
});
}
});
if (Prototype.Browser.IE) {
if(Prototype.Browser.IE) {
var TYPO3IECompatibilty = new IECompatibility();
}
typo3/sysext/t3skin/ext_tables.php (working copy)
$TBE_STYLES['skinImg']['MOD:tools_em/uninstall.gif'] = array($temp_eP.'icons/ext/templavoila/mod1/moduleicon.gif','width="22" height="22"');
//print_a($TBE_STYLES,2);
$GLOBALS['TYPO3_CONF_VARS']['typo3/backend.php']['additionalBackendItems'][] = t3lib_extMgm::extPath('t3skin').'registerIe6Stylesheet.php';
}
?>
?>
typo3/sysext/t3skin/registerIe6Stylesheet.php (revision 0)
<?php
if(TYPO3_MODE == 'BE') {
// handle stupid IE6
$userAgent = t3lib_div::getIndpEnv('HTTP_USER_AGENT');
if(!(strpos($userAgent, 'MSIE 6') === false) && strpos($userAgent, 'Opera') === false) {
//make sure we match IE6 but not Opera
$GLOBALS['TYPO3backend']->addCssFile('ie6fix', 'sysext/t3skin/stylesheets/ie6.css');
}
}
?>
typo3/sysext/t3skin/stylesheets/ie6.css (revision 0)
/* - - - - - - - - - - - - - - - - - - - - -
Title : TYPO3 backend vertical menu styles
Author : Ingo Renner <ingo@typo3.org>
URL : http://typo3.org
Description : fixes the stupid Internet Explorer
$Id$
- - - - - - - - - - - - - - - - - - - - - */
#typo3-menu li div.expanded {
background-image: url('../../../gfx/ie6/arrowdown.gif');
}
#typo3-menu li div.collapsed {
background-image: url('../../../gfx/ie6/arrowright.gif');
}
typo3/sysext/t3skin/stylesheets/modulemenu.css (working copy)
font-size: 11px;
color: #505d6d;
border: none;
background-color: transparent;
background-color: #edeeee;
padding: 2px 0px 4px 16px;
margin: 8px 0px 2px 4px;
height: auto;
......
}
#typo3-menu li div.collapsed {
background-image: url(../../../gfx/arrowright.png);
background-image: url('../../../gfx/arrowright.png');
background-repeat: no-repeat;
}
......
}
#typo3-menu li div.expanded {
background-image: url(../../../gfx/arrowdown.png);
background-image: url('../../../gfx/arrowdown.png');
background-repeat: no-repeat;
}
(4-4/5)