Create new sidemenuEntry for tab target

This commit is contained in:
Hadi Nategh
2020-09-28 15:43:42 +02:00
parent 7fa1e7cd80
commit cdbc5e3a71
4 changed files with 28 additions and 4 deletions

View File

@ -462,7 +462,7 @@ export class etemplate2
const appname = _name.split('.')[0];
// if no app object provided and template app is not currentapp (eg. infolog CRM view)
// create private app object / closure with just classes / prototypes
if (!_app && appname && appname != currentapp || _open_target == "_tab")
if (!_app && appname && appname != currentapp || _open_target)
{
app = {classes: window.app.classes};
}
@ -1280,6 +1280,8 @@ export class etemplate2
// handle framework.setSidebox calls
if (window.framework && jQuery.isArray(data.setSidebox))
{
if (data['open-target']) data.setSidebox[0] = data['open-target'];
window.framework.setSidebox.apply(window.framework, data.setSidebox);
}