mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
Fix action do not provide icon.
action might be undefined then button will get no icon. Prevent throwing an uncatched error and insert warning sign on button Will do better one I allow text instead of icon
This commit is contained in:
parent
49dd77e0ec
commit
9c085a9273
@ -124,7 +124,7 @@ define([
|
|||||||
.addClass('btn btn-default')
|
.addClass('btn btn-default')
|
||||||
.attr("title", el.label||action.help)
|
.attr("title", el.label||action.help)
|
||||||
.append(
|
.append(
|
||||||
$("<i/>").addClass(el.icon||action.icon).addClass('fa')
|
$("<i/>").addClass(el.icon||(action||{icon:'fa-exclamation-triangle'}).icon).addClass('fa')
|
||||||
);
|
);
|
||||||
var id = el.id;
|
var id = el.id;
|
||||||
if( id !== undefined ){
|
if( id !== undefined ){
|
||||||
|
Loading…
Reference in New Issue
Block a user