move global et2_call function to egw.call and egw.apply methods, ensuring app.js is loaded, if not yet loaded, also using that as apply plugin for egw.json

This commit is contained in:
Ralf Becker
2021-03-01 11:50:22 +02:00
parent 9128d15bb2
commit e36c6c4cec
4 changed files with 95 additions and 65 deletions

View File

@ -708,7 +708,7 @@ var fw_base = (function(){ "use strict"; return Class.extend(
tabLinkHandler: function(_link, _extra)
{
var app = this.parseAppFromUrl(_link);
var app = typeof _extra.appName === 'string' ? _extra : this.parseAppFromUrl(_link);
if (app)
{
var appname = app.appName+"-"+btoa(_extra.id ? _extra.id : _link).replace(/=/g,'i');