forked from extern/egroupware
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);
|
this.image.set_statustext(_value);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
setValue: function(_value) {
|
||||||
|
// Value is src, images don't get IDs
|
||||||
|
this.set_src(_value);
|
||||||
|
},
|
||||||
|
|
||||||
set_src: function(_value) {
|
set_src: function(_value) {
|
||||||
if(!this.isInTree())
|
if(!this.isInTree())
|
||||||
{
|
{
|
||||||
return;
|
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;
|
this.options.src = _value;
|
||||||
// Get application to use from template ID
|
// Get application to use from template ID
|
||||||
var appname = this.getTemplateApp();
|
var appname = this.getTemplateApp();
|
||||||
|
Loading…
Reference in New Issue
Block a user