fixed includeJS causing jQuery to be included twice and breaking plugins

This commit is contained in:
Ralf Becker
2021-06-08 15:11:37 +02:00
parent 304dbb95ab
commit 8fa2bb466b
6 changed files with 14 additions and 10 deletions

View File

@ -156,7 +156,7 @@ egw.extend('files', egw.MODULE_WND_LOCAL, function(_app, _wnd)
{
_jsFiles = [_jsFiles];
}
const promise = import(_prefix ? _jsFiles.map((src) => _prefix+src) : _jsFiles);
const promise = Promise.all(_jsFiles.map((src) => import(_prefix ? _prefix+src : src)));
return typeof _callback === 'undefined' ? promise : promise.then(_callback.call(_context));
// @todo check the prefix stuff