Project

General

Profile

Bug #18258 ยป 20080220_IE_modulemenu.diff

Administrator Admin, 2008-02-20 16:26

View differences:

typo3/js/modulemenu.js (working copy)
*/
registerEventListeners: function() {
$$('#typo3-menu li.menuSection div').invoke('observe', 'click', this.toggleMenu);
if(Prototype.Browser.IE) {
//mouseenter and mouseleave are only available but thats our target
$$('#typo3-menu li.menuSection li').invoke('observe', 'mouseenter', this.toggleHoverClass);
$$('#typo3-menu li.menuSection li').invoke('observe', 'mouseleave', this.toggleHoverClass);
}
},
/**
* toggles the hover classname for IE menu hover support
*/
toggleHoverClass: function(event) {
var menuItem = Event.element(event);
menuItem.toggleClassName('hover');
},
/**
* toggles the associated submodule menu when clicking a main module header
typo3/css/modulemenu.css (working copy)
}
#typo3-menu li span.submodule-icon {
display: inline-block;
display: -moz-inline-box;
display: block;
float: left;
width: 20px;
vertical-align: top;
}
/* IE needs a special treatment */
* html #typo3-menu li span.submodule-icon {
margin-right: 3px;
}
#typo3-menu li ul li {
font-weight: normal;
width: 138px;
......
height: auto;
}
/* IE needs a special treatment */
* html #typo3-menu li ul li {
height: 16px;
}
#typo3-menu li ul li a {
text-decoration: none;
display: block;
}
#typo3-menu li.menuSection li:hover,
#typo3-menu li.menuSection li.hover,
#typo3-menu li.highlighted {
background-color: #e3dfdb;
}
typo3/sysext/t3skin/stylesheets/modulemenu.css (working copy)
}
#typo3-menu li.menuSection li:hover,
#typo3-menu li.menuSection li.hover,
#typo3-menu li.highlighted {
background-color: #d7dbe2;
}
    (1-1/1)