mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 17:14:44 +01:00
Check for name expansion
This commit is contained in:
parent
d71b807b8f
commit
02c414129a
@ -65,11 +65,28 @@ var et2_image = et2_baseWidget.extend({
|
||||
this.image.set_statustext(_value);
|
||||
},
|
||||
|
||||
setValue: function(_value) {
|
||||
// Value is src, images don't get IDs
|
||||
this.set_src(_value);
|
||||
},
|
||||
|
||||
set_src: function(_value) {
|
||||
if(!this.isInTree())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Check to expand name
|
||||
if(_value.indexOf("$") != -1 || _value.indexOf("@") != -1) {
|
||||
var contentMgr = this.getArrayMgr("content");
|
||||
if (contentMgr != null) {
|
||||
var val = contentMgr.getValueForID(_value);
|
||||
if (val !== null)
|
||||
{
|
||||
_value = val;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.options.src = _value;
|
||||
// Get application to use from template ID
|
||||
var appname = this.getTemplateApp();
|
||||
|
Loading…
Reference in New Issue
Block a user