mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-09 00:14:57 +02:00
Implemented default focusing of objects in the tab manager, added new egw_getAppName function on js side, which returns the name of the currently active application - this is needed for the keyboard handler to pass the key events to the correct application object manager.
This commit is contained in:
@ -189,6 +189,21 @@ function egw_getApp(_name)
|
||||
return window.parent.framework.getApplicationByName(_name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the name of the currently active application
|
||||
*/
|
||||
function egw_getAppName()
|
||||
{
|
||||
if (typeof egw_appName == 'undefined')
|
||||
{
|
||||
return 'egroupware';
|
||||
}
|
||||
else
|
||||
{
|
||||
return egw_appName;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Refresh given application _targetapp display of entry _app _id, incl. outputting _msg
|
||||
*
|
||||
|
Reference in New Issue
Block a user