fix not working admin menu entries after mobile template automatic sidebar closing

This commit is contained in:
ralf 2024-09-09 14:51:46 +02:00
parent 2b93dea630
commit b768dc6e82

View File

@ -172,9 +172,9 @@ class AdminApp extends EgwApp
return;
}
// check for mobile framework and close the sidebox/-bar
if (typeof framework.toggleMenu === 'function')
if (typeof window.framework?.toggleMenu === 'function')
{
framework.toggleMenu('on');
window.framework.toggleMenu('on');
}
var ajax : any = false;
if (_url)