Fix %s as value in description widget

This commit is contained in:
Hadi Nategh 2013-11-11 14:16:18 +00:00
parent 3ccfe3fb93
commit 42368769a0

View File

@ -122,6 +122,12 @@ var et2_description = et2_baseWidget.extend([et2_IDetachedDOM],
set_value: function(_value) { set_value: function(_value) {
if(!_value) _value = ""; if(!_value) _value = "";
else 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 (!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],