⚲
Project
General
Profile
Sign in
Home
Projects
Help
Search
:
TYPO3 Core
All Projects
TYPO3 Core
Overview
Activity
Roadmap
Issues
Repository
Download (501 Bytes)
Bug #18028
» setActive.txt
Administrator Admin, 2008-01-25 01:31
registerEventListeners: function() {
$$('#typo3-menu li.menuSection ul li').invoke('observe', 'click', this.toggleActiveClass);
},
toggleActiveClass : function(event) {
// remove active
$$('#typo3-menu li.menuSection ul li').each(function(el) {
if (el.hasClassName('active')) {
el.removeClassName('active');
}
});
// set active
var mainMenuId = Event.element(event).up('li');
if(!mainMenuId.hasClassName('menuSection')) {
mainMenuId.addClassName('active');
}
},
« Previous
1
2
Next »
(2-2/2)
Loading...