mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
Get images named like appname/imagename working again for images outside current app
This commit is contained in:
parent
25097f983b
commit
df2ba7ddd6
@ -54,9 +54,8 @@ egw.extend('images', egw.MODULE_GLOBAL, function() {
|
||||
// current application
|
||||
_app = this.getAppName();
|
||||
|
||||
// If this.getAppName does not work, try to determine the image
|
||||
// by looking at the image path.
|
||||
if((!_app || _name.indexOf(_app+'/') == 0) && _name.indexOf('/') > 0)
|
||||
// Handle images in appname/imagename format
|
||||
if(_name.indexOf('/') > 0)
|
||||
{
|
||||
var split = et2_csvSplit(_name, 2,"/");
|
||||
var _app = split[0];
|
||||
|
Loading…
Reference in New Issue
Block a user