Skip to content

Commit

Permalink
Toolbar buttons tooltip: fallback to label if no help
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed May 17, 2020
1 parent d7f86ef commit 38689d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebook/static/notebook/js/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ define(['jquery','base/js/i18n'], function($, i18n) {
}
var button = $('<button/>')
.addClass('btn btn-default')
.attr("title", i18n.msg._(action.help))
.attr("title", i18n.msg._(action.help)||el.label)
.append(
$("<i/>").addClass(el.icon||(action||{icon:'fa-exclamation-triangle'}).icon).addClass('fa')
);
Expand Down

0 comments on commit 38689d8

Please sign in to comment.