mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
fixed not working set_value
This commit is contained in:
parent
7dd61b5617
commit
845c460d68
@ -120,15 +120,12 @@ var et2_description = et2_baseWidget.extend([et2_IDetachedDOM],
|
|||||||
},
|
},
|
||||||
|
|
||||||
set_value: function(_value) {
|
set_value: function(_value) {
|
||||||
if(!_value) _value = "";
|
if (!_value) _value = "";
|
||||||
else
|
if (!this.options.no_lang) _value = this.egw().lang(_value);
|
||||||
if (this.span.text() != _value)
|
if (this.options.value && this.options.value.indexOf('%s') != -1)
|
||||||
{
|
{
|
||||||
var spliter = this.span.text().replace(/%s/g,_value);
|
_value = this.options.value.replace(/%s/g, _value);
|
||||||
if (spliter !="")
|
}
|
||||||
_value = spliter;
|
|
||||||
}
|
|
||||||
if (!this.options.no_lang) _value = this.egw().lang(_value);
|
|
||||||
et2_insertLinkText(this._parseText(_value),
|
et2_insertLinkText(this._parseText(_value),
|
||||||
this.span[0],
|
this.span[0],
|
||||||
this.options.extra_link_target
|
this.options.extra_link_target
|
||||||
|
Loading…
Reference in New Issue
Block a user