mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
also fix action in kernelselector.js
This commit is contained in:
parent
3aef283f79
commit
f064f8e113
@ -60,7 +60,10 @@ define([
|
||||
ks = this.kernelspecs[keys[i]];
|
||||
ks_submenu_entry = $("<li>").attr("id", "kernel-submenu-"+ks.name).append($('<a>')
|
||||
.attr('href', '#')
|
||||
.click($.proxy(this.set_kernel, this, ks.name))
|
||||
.click(function(){
|
||||
$.proxy(this.set_kernel, this, ks.name)
|
||||
event.preventDefault();
|
||||
})
|
||||
.text(ks.spec.display_name));
|
||||
change_kernel_submenu.append(ks_submenu_entry);
|
||||
}
|
||||
@ -70,7 +73,10 @@ define([
|
||||
ks = this.kernelspecs[keys[i]];
|
||||
ks_submenu_entry = $("<li>").attr("id", "new-notebook-submenu-"+ks.name).append($('<a>')
|
||||
.attr('href', '#')
|
||||
.click($.proxy(this.new_notebook, this, ks.name))
|
||||
.click(function(){
|
||||
$.proxy(this.new_notebook, this, ks.name)
|
||||
event.preventDefault();
|
||||
})
|
||||
.text(ks.spec.display_name));
|
||||
new_notebook_submenu.append(ks_submenu_entry);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user