mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
Remove redundant code - api handles this
This commit is contained in:
parent
e1f8411253
commit
2df89f73ab
@ -123,17 +123,7 @@ var et2_image = et2_baseWidget.extend([et2_IDetachedDOM], {
|
||||
|
||||
this.options.src = _value;
|
||||
|
||||
var app = this.egw().getAppName();
|
||||
|
||||
// Handle app/image
|
||||
if(_value.indexOf("/") > 0 && _value.indexOf("/") == _value.lastIndexOf("/")) {
|
||||
var split = et2_csvSplit(_value, 2,"/");
|
||||
var app = split[0];
|
||||
_value = split[1];
|
||||
}
|
||||
// Get application to use from template ID
|
||||
//if(app == 'phpgwapi') app = 'infolog';
|
||||
var src = this.egw().image(_value, app);
|
||||
var src = this.egw().image(_value);
|
||||
if(src)
|
||||
{
|
||||
this.image.attr("src", src).show();
|
||||
|
Loading…
Reference in New Issue
Block a user