return hashed appName of opened tab eg. to set notifcation counter

This commit is contained in:
Ralf Becker 2021-03-02 21:00:59 +02:00
parent 7c7445cea5
commit a467bab01f
2 changed files with 4 additions and 2 deletions

View File

@ -1076,8 +1076,9 @@ declare interface IegwWndLocal extends IegwGlobal
* @param {string} _type default "edit", possible "view", "view_list", "edit" (falls back to "view") and "add"
* @param {object|string} _extra extra url parameters to append as object or string
* @param {object} _framework_app framework app attributes e.g. title or displayName
* @return {string} appname of tab
*/
openTab(_id, _app, _type, _extra, _framework_app) : void;
openTab(_id, _app, _type, _extra, _framework_app) : string|void;
/**
* Get available height of screen

View File

@ -242,6 +242,7 @@ egw.extend('open', egw.MODULE_WND_LOCAL, function(_egw, _wnd)
* @param {string} _type default "edit", possible "view", "view_list", "edit" (falls back to "view") and "add"
* @param {object|string} _extra extra url parameters to append as object or string
* @param {object} _framework_app framework app attributes e.g. title or displayName
* @return {string} appname of new tab
*/
openTab: function(_id, _app, _type, _extra, _framework_app)
{
@ -249,7 +250,7 @@ egw.extend('open', egw.MODULE_WND_LOCAL, function(_egw, _wnd)
{
var data = this.open(_id, _app, _type, _extra, "_tab", false);
// Use framework's link handler
_wnd.framework.tabLinkHandler(data.url, _framework_app);
return _wnd.framework.tabLinkHandler(data.url, _framework_app);
}
else
{