Add action hint as tooltip in toolbar actions. If there is no hint, use action caption as tooltip

This commit is contained in:
Hadi Nategh 2014-02-07 11:02:35 +00:00
parent f073db1f63
commit 5aa51c2396

View File

@ -268,7 +268,7 @@ var et2_toolbar = et2_DOMWidget.extend(
var button = $j(document.createElement('button')) var button = $j(document.createElement('button'))
.addClass("et2_button et2_button_text et2_button_with_image") .addClass("et2_button et2_button_text et2_button_with_image")
.attr('id', this.id+'-'+action.id) .attr('id', this.id+'-'+action.id)
.attr('title', action.caption) .attr('title', (action.hint ? action.hint : action.caption))
.appendTo(this.preference[action.id]?this.actionbox.children()[1]:$j('[data-group='+action.group+']',this.actionlist)); .appendTo(this.preference[action.id]?this.actionbox.children()[1]:$j('[data-group='+action.group+']',this.actionlist));
if ( action.iconUrl) if ( action.iconUrl)