Skip to content

Commit

Permalink
Fix selector for new kernel menu entry
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Nov 1, 2018
1 parent 00ab20c commit 20e9db4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebook/static/notebook/js/kernelselector.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ define([
this.current_selection = ks.name;

// put the current kernel at the top of File > New Notebook
var cur_kernel_entry = $('.new-notebook-kernel[data-kernel-type="' + ks.name + '"');
var cur_kernel_entry = $('.new-notebook-kernel[data-kernel-type="' + ks.name + '"]');
var parent = cur_kernel_entry.parent();
// do something only if there is more than one kernel
if (parent.children().length > 1) {
Expand Down

0 comments on commit 20e9db4

Please sign in to comment.