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

@ -51,6 +51,18 @@ function egw_fw_class_application(_parentFw, _appName, _displayName, _icon,
this.browser = null;
}
/**
* destroy application object and its relative parts
*/
egw_fw_class_application.prototype.destroy = function()
{
delete this.tab;
if (this.sidemenuEntry) this.sidemenuEntry.remove();
delete this.sidemenuEntry;
delete this.browser;
delete (framework.applications[this.appName]);
};
/**
* Returns an menuaction inside the jdots_framework for this application.
* without a "this" context (by directly calling egw_fw_class_application.prototype.getAjaxUrl)