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