also fix action in kernelselector.js

This commit is contained in:
Matthias Bussonnier 2015-01-14 11:05:16 +01:00
parent 3aef283f79
commit f064f8e113

View File

@ -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);
}