A quick fix for those of us who have encountered the top admin menu in Joomla becoming unresponsive. You know, you click, but no sub menu appears? If you check your dev tool of choice (ie. Firebug), you'll most likely see something like this:
$ES is not defined
The issue has to do with mootools.js and how older versions of Joomla handle the rendering of the admin menus. Recently, I ran into this issue when I installed a newer version of mootools so that I could get a lightbox effect on a Joomla Virtuemart store. What I didn't realize at the time was this resulted in the admin menu failing.
The fix, thankfully, is quite easy.
The file is: /administrator/templates/khepri/js/menu.js
The changes are:
Find:
var elements = $ES('li', el);
Replace with:
var adminMenu=el.id;
var elements = $(adminMenu).getElements('li');
Find:
nested = $E('ul', element);
Replace with:
nested = element.getElement('ul');
$ES is not defined
The issue has to do with mootools.js and how older versions of Joomla handle the rendering of the admin menus. Recently, I ran into this issue when I installed a newer version of mootools so that I could get a lightbox effect on a Joomla Virtuemart store. What I didn't realize at the time was this resulted in the admin menu failing.
The fix, thankfully, is quite easy.
The file is: /administrator/templates/khepri/js/menu.js
The changes are:
Find:
var elements = $ES('li', el);
Replace with:
var adminMenu=el.id;
var elements = $(adminMenu).getElements('li');
Find:
nested = $E('ul', element);
Replace with:
nested = element.getElement('ul');
This comment has been removed by a blog administrator.
ReplyDeleteThnx!!!
ReplyDeleteThanks, I had the same problem and your solution fix it.. thanks a lot
ReplyDelete