Show More
@@ -60,7 +60,10 b' define([' | |||||
60 | ks = this.kernelspecs[keys[i]]; |
|
60 | ks = this.kernelspecs[keys[i]]; | |
61 | ks_submenu_entry = $("<li>").attr("id", "kernel-submenu-"+ks.name).append($('<a>') |
|
61 | ks_submenu_entry = $("<li>").attr("id", "kernel-submenu-"+ks.name).append($('<a>') | |
62 | .attr('href', '#') |
|
62 | .attr('href', '#') | |
63 | .click($.proxy(this.set_kernel, this, ks.name)) |
|
63 | .click(function(){ | |
|
64 | $.proxy(this.set_kernel, this, ks.name) | |||
|
65 | event.preventDefault(); | |||
|
66 | }) | |||
64 | .text(ks.spec.display_name)); |
|
67 | .text(ks.spec.display_name)); | |
65 | change_kernel_submenu.append(ks_submenu_entry); |
|
68 | change_kernel_submenu.append(ks_submenu_entry); | |
66 | } |
|
69 | } | |
@@ -70,7 +73,10 b' define([' | |||||
70 | ks = this.kernelspecs[keys[i]]; |
|
73 | ks = this.kernelspecs[keys[i]]; | |
71 | ks_submenu_entry = $("<li>").attr("id", "new-notebook-submenu-"+ks.name).append($('<a>') |
|
74 | ks_submenu_entry = $("<li>").attr("id", "new-notebook-submenu-"+ks.name).append($('<a>') | |
72 | .attr('href', '#') |
|
75 | .attr('href', '#') | |
73 | .click($.proxy(this.new_notebook, this, ks.name)) |
|
76 | .click(function(){ | |
|
77 | $.proxy(this.new_notebook, this, ks.name) | |||
|
78 | event.preventDefault(); | |||
|
79 | }) | |||
74 | .text(ks.spec.display_name)); |
|
80 | .text(ks.spec.display_name)); | |
75 | new_notebook_submenu.append(ks_submenu_entry); |
|
81 | new_notebook_submenu.append(ks_submenu_entry); | |
76 | } |
|
82 | } |
General Comments 0
You need to be logged in to leave comments.
Login now