Toolbar buttons tooltip: show help instead of label

This commit is contained in:
Simon Li 2019-12-07 14:34:56 +00:00 committed by Afshin T. Darian
parent ebd2b5701c
commit d7f86ef6d3

View File

@ -94,7 +94,7 @@ define(['jquery','base/js/i18n'], function($, i18n) {
}
var button = $('<button/>')
.addClass('btn btn-default')
.attr("title", el.label||i18n.msg._(action.help))
.attr("title", i18n.msg._(action.help))
.append(
$("<i/>").addClass(el.icon||(action||{icon:'fa-exclamation-triangle'}).icon).addClass('fa')
);