using now Birgit's substitution list for images before looking at the usual places

This commit is contained in:
ralf
2024-08-25 11:48:19 +02:00
parent dacd2e0c94
commit 3e0cce403e
4 changed files with 310 additions and 10 deletions

View File

@@ -93,16 +93,29 @@ egw.extend('images', egw.MODULE_GLOBAL, function()
{
return this.webserverUrl+images['vfs'][_name];
}
tries[_app + (_app == 'phpgwapi' ? " (current app)" : "")] = _name;
if (typeof images[_app] != 'undefined' && typeof images[_app][_name] == 'string')
if (_app !== 'api')
{
return this.webserverUrl+images[_app][_name];
tries['global'] = _app+'/'+_name;
if (typeof images['global'] !== 'undefined' && typeof images['global'][_app+'/'+_name] === 'string' &&
typeof images['bootstrap'] !== 'undefined' && typeof images['bootstrap'][images['global'][_app+'/'+_name]] == 'string')
{
return this.webserverUrl+images['bootstrap'][images['global'][_app+'/'+_name]];
}
}
tries['global'] = _name;
if (typeof images['global'] !== 'undefined' && typeof images['global'][_name] === 'string')
{
if (typeof images['bootstrap'] !== 'undefined' && typeof images['bootstrap'][_name] == 'string')
{
return this.webserverUrl+images['bootstrap'][_name];
}
return this.image(images['global'][_name], _app);
}
tries[_app + (_app == 'phpgwapi' ? " (current app)" : "")] = _name;
if (typeof images[_app] != 'undefined' && typeof images[_app][_name] == 'string')
{
return this.webserverUrl+images[_app][_name];
}
tries['bootstrap'] = _name;
if (typeof images['bootstrap'] !== 'undefined' && typeof images['bootstrap'][_name] == 'string')
{