mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 17:33:49 +01:00
return hashed appName of opened tab eg. to set notifcation counter
This commit is contained in:
parent
7c7445cea5
commit
a467bab01f
3
api/js/jsapi/egw_global.d.ts
vendored
3
api/js/jsapi/egw_global.d.ts
vendored
@ -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 {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|string} _extra extra url parameters to append as object or string
|
||||||
* @param {object} _framework_app framework app attributes e.g. title or displayName
|
* @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
|
* Get available height of screen
|
||||||
|
@ -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 {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|string} _extra extra url parameters to append as object or string
|
||||||
* @param {object} _framework_app framework app attributes e.g. title or displayName
|
* @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)
|
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);
|
var data = this.open(_id, _app, _type, _extra, "_tab", false);
|
||||||
// Use framework's link handler
|
// Use framework's link handler
|
||||||
_wnd.framework.tabLinkHandler(data.url, _framework_app);
|
return _wnd.framework.tabLinkHandler(data.url, _framework_app);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user