mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 01:18:42 +01:00
Api: Avoid "Uncaught TypeError: egw_globalObjectManager is null" from popups
This commit is contained in:
parent
abf2cb56e2
commit
1b184c11c8
@ -267,7 +267,7 @@ function egw_keyHandler(_keyCode, _shift, _ctrl, _alt) {
|
|||||||
|
|
||||||
// Get the object manager and fetch the container of the currently
|
// Get the object manager and fetch the container of the currently
|
||||||
// focused object
|
// focused object
|
||||||
var focusedObject = egw_globalObjectManager.getFocusedObject();
|
var focusedObject = egw_globalObjectManager ? egw_globalObjectManager.getFocusedObject() : null;
|
||||||
var appMgr = egw_getAppObjectManager(false);
|
var appMgr = egw_getAppObjectManager(false);
|
||||||
if (appMgr && !focusedObject)
|
if (appMgr && !focusedObject)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user