Show More
@@ -97,6 +97,14 b' define([' | |||||
97 | that.events.trigger('spec_changed.Kernel', ks); |
|
97 | that.events.trigger('spec_changed.Kernel', ks); | |
98 | } |
|
98 | } | |
99 | }); |
|
99 | }); | |
|
100 | ||||
|
101 | var logo_img = this.element.find("#current_kernel_logo") | |||
|
102 | logo_img.on("load", function() { | |||
|
103 | logo_img.show(); | |||
|
104 | }); | |||
|
105 | logo_img.on("error", function() { | |||
|
106 | logo_img.hide(); | |||
|
107 | }); | |||
100 | }; |
|
108 | }; | |
101 |
|
109 | |||
102 | return {'KernelSelector': KernelSelector}; |
|
110 | return {'KernelSelector': KernelSelector}; |
@@ -42,7 +42,7 b' class="notebook_app"' | |||||
42 | </span> |
|
42 | </span> | |
43 |
|
43 | |||
44 | <span id="kernel_selector_widget" class="pull-right dropdown"> |
|
44 | <span id="kernel_selector_widget" class="pull-right dropdown"> | |
45 |
<img id="current_kernel_logo" |
|
45 | <img id="current_kernel_logo"/> | |
46 | <button class="dropdown-toggle btn btn-sm navbar-btn" data-toggle="dropdown" type='button' id="current_kernel_spec"> |
|
46 | <button class="dropdown-toggle btn btn-sm navbar-btn" data-toggle="dropdown" type='button' id="current_kernel_spec"> | |
47 | <span class='kernel_name'>Kernel</span> |
|
47 | <span class='kernel_name'>Kernel</span> | |
48 | <span class="caret"></span> |
|
48 | <span class="caret"></span> |
General Comments 0
You need to be logged in to leave comments.
Login now