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:
commit
4fb00bc964
@ -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');
|
||||
|
||||
|
Reference in New Issue
Block a user