merged branch dlsniper/wpb-small-fix (PR #6379)

This PR was merged into the master branch.

Commits
-------

254d40b Small fix for WPB when there is no menu item

Discussion
----------

Small fix for WPB when there is no menu item

This fixes a Javascript error when the page doesn't contain any menu items.

Thanks!
This commit is contained in:
Fabien Potencier 2012-12-16 08:44:07 +01:00
commit 4fb00bc964

View File

@ -107,6 +107,10 @@
}
window.setTimeout(function() {
if (document.getElementById('menu-profiler') == null) {
return;
}
var menuItems = document.getElementById('menu-profiler').getElementsByTagName('LI'),
elem, value, child, displayState = Sfjs.getPreference('menu/displayState');