Don't set image title if there's a tooltip, browser may show both

This commit is contained in:
Nathan Gray 2012-04-04 20:25:20 +00:00
parent e88585c8e0
commit 09ac4244cb

View File

@ -150,7 +150,12 @@ var et2_button = et2_baseWidget.extend([et2_IInput, et2_IDetachedDOM], {
}
if(this.image)
{
this.image.attr("alt", _value).attr("title",_value);
this.image.attr("alt", _value);
// Don't set title if there's a tooltip, browser may show both
if(!this.options.statustext)
{
this.image.attr("title",_value);
}
}
},