diff --git a/etemplate/js/et2_widget_description.js b/etemplate/js/et2_widget_description.js index 4e8ba29aa3..fea1713a0a 100644 --- a/etemplate/js/et2_widget_description.js +++ b/etemplate/js/et2_widget_description.js @@ -120,15 +120,12 @@ var et2_description = et2_baseWidget.extend([et2_IDetachedDOM], }, set_value: function(_value) { - if(!_value) _value = ""; - else - if (this.span.text() != _value) - { - var spliter = this.span.text().replace(/%s/g,_value); - if (spliter !="") - _value = spliter; - } - if (!this.options.no_lang) _value = this.egw().lang(_value); + if (!_value) _value = ""; + if (!this.options.no_lang) _value = this.egw().lang(_value); + if (this.options.value && this.options.value.indexOf('%s') != -1) + { + _value = this.options.value.replace(/%s/g, _value); + } et2_insertLinkText(this._parseText(_value), this.span[0], this.options.extra_link_target