fixed buttons in toolbar show no tooltip in Firefox (caused by title attribute on image not button)

This commit is contained in:
Ralf Becker 2014-01-20 18:11:32 +00:00
parent 8099b8eb4c
commit 01773135ea

View File

@ -251,10 +251,11 @@ var et2_toolbar = et2_DOMWidget.extend(
var button = $j(document.createElement('button'))
.addClass("et2_button")
.attr('id', this.id+'-'+action.id)
.attr('title', action.caption)
.appendTo(this.preference[action.id]?this.actionbox.children()[1]:$j('[data-group='+action.group+']',this.actionlist));
if(action.iconUrl)
{
button.prepend("<img src='"+action.iconUrl+"' title='"+action.caption+"' class='et2_button_icon'/>");
button.prepend("<img src='"+action.iconUrl+"' class='et2_button_icon'/>");
}
if(action.icon)
{