Show More
@@ -42,8 +42,8 b' define([' | |||||
42 | this.kernelspecs = data.kernelspecs; |
|
42 | this.kernelspecs = data.kernelspecs; | |
43 | var menu = this.element.find("#notebook-kernels"); |
|
43 | var menu = this.element.find("#notebook-kernels"); | |
44 | var keys = Object.keys(data.kernelspecs).sort(function (a, b) { |
|
44 | var keys = Object.keys(data.kernelspecs).sort(function (a, b) { | |
45 | var da = data.kernelspecs[a].display_name; |
|
45 | var da = data.kernelspecs[a].spec.display_name; | |
46 | var db = data.kernelspecs[b].display_name; |
|
46 | var db = data.kernelspecs[b].spec.display_name; | |
47 | if (da === db) { |
|
47 | if (da === db) { | |
48 | return 0; |
|
48 | return 0; | |
49 | } else if (da > db) { |
|
49 | } else if (da > db) { | |
@@ -60,8 +60,8 b' define([' | |||||
60 | $('<a>') |
|
60 | $('<a>') | |
61 | .attr('href', '#') |
|
61 | .attr('href', '#') | |
62 | .click($.proxy(this.new_notebook, this, ks.name)) |
|
62 | .click($.proxy(this.new_notebook, this, ks.name)) | |
63 | .text(ks.display_name) |
|
63 | .text(ks.spec.display_name) | |
64 | .attr('title', 'Create a new notebook with ' + ks.display_name) |
|
64 | .attr('title', 'Create a new notebook with ' + ks.spec.display_name) | |
65 | ); |
|
65 | ); | |
66 | menu.after(li); |
|
66 | menu.after(li); | |
67 | } |
|
67 | } |
General Comments 0
You need to be logged in to leave comments.
Login now