mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Make sure data is available before using it
This commit is contained in:
parent
bde724d29f
commit
feac8a1e80
@ -99,7 +99,9 @@ function egwMenuImpl(_structure)
|
|||||||
// Add disableIfNoEPL class to the relevant action's DOM
|
// Add disableIfNoEPL class to the relevant action's DOM
|
||||||
for(var i in this.dhtmlxmenu.idPull)
|
for(var i in this.dhtmlxmenu.idPull)
|
||||||
{
|
{
|
||||||
if (this.dhtmlxmenu.userData[i+'_egw_menu'] && this.dhtmlxmenu.userData[i+'_egw_menu']['data']['disableIfNoEPL'])
|
if (this.dhtmlxmenu.userData[i+'_egw_menu'] &&
|
||||||
|
this.dhtmlxmenu.userData[i+'_egw_menu']['data'] &&
|
||||||
|
this.dhtmlxmenu.userData[i+'_egw_menu']['data']['disableIfNoEPL'])
|
||||||
{
|
{
|
||||||
this.dhtmlxmenu.idPull[i].className += ' disableIfNoEPL';
|
this.dhtmlxmenu.idPull[i].className += ' disableIfNoEPL';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user