fixed not translated tooltip/label

This commit is contained in:
Ralf Becker 2014-02-03 10:15:47 +00:00
parent 84b6e72f4b
commit c2aad7342f

View File

@ -125,8 +125,8 @@ var et2_image = et2_baseWidget.extend([et2_IDetachedDOM],
},
set_label: function(_value) {
if(_value == this.options.label && _value == this.image.attr('title')) return;
this.options.label = _value;
_value = this.egw().lang(_value);
// label is NOT the alt attribute in eTemplate, but the title/tooltip
this.image.attr("alt", _value).attr("title", _value);
},