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:
Andreas Stöckel
2011-06-15 20:54:58 +00:00
parent 509ff8aa53
commit 9db8424e15
6 changed files with 115 additions and 11 deletions

View File

@ -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
*