include jquery and other legacy js files via script tag

This commit is contained in:
Ralf Becker
2021-06-10 11:38:54 +02:00
parent 40cac6f964
commit 5298336886
33 changed files with 458 additions and 514 deletions

View File

@ -156,6 +156,8 @@ egw.extend('files', egw.MODULE_WND_LOCAL, function(_app, _wnd)
{
_jsFiles = [_jsFiles];
}
// filter out files included by script-tag via egw.js
_jsFiles = _jsFiles.filter((src) => src.match(egw.legacy_js_regexp) === null);
let promise;
if (_jsFiles.length === 1) // running this in below case fails when loading app.js from etemplate.load()
{