##// END OF EJS Templates
better fix for starting with Command Mode icon
Paul Ivanov -
Show More
@@ -2048,7 +2048,6 b' var IPython = (function (IPython) {'
2048 } else {
2048 } else {
2049 this.select(0);
2049 this.select(0);
2050 this.handle_command_mode(this.get_cell(0));
2050 this.handle_command_mode(this.get_cell(0));
2051 $([IPython.events]).trigger('command_mode.Notebook');
2052 }
2051 }
2053 this.set_dirty(false);
2052 this.set_dirty(false);
2054 this.scroll_to_top();
2053 this.scroll_to_top();
@@ -83,6 +83,9 b' var IPython = (function (IPython) {'
83 $modal_ind_icon.attr('class','ipython-command-mode').attr('title','Command Mode');
83 $modal_ind_icon.attr('class','ipython-command-mode').attr('title','Command Mode');
84 });
84 });
85
85
86 // Implicitly start off in Command mode, switching to Edit mode will trigger event
87 $modal_ind_icon.attr('class','ipython-command-mode').attr('title','Command Mode');
88
86 // Kernel events
89 // Kernel events
87 $([IPython.events]).on('status_idle.Kernel',function () {
90 $([IPython.events]).on('status_idle.Kernel',function () {
88 IPython.save_widget.update_document_title();
91 IPython.save_widget.update_document_title();
@@ -105,7 +108,7 b' var IPython = (function (IPython) {'
105
108
106 // Start the kernel indicator in the busy state, and send a kernel_info request.
109 // Start the kernel indicator in the busy state, and send a kernel_info request.
107 // When the kernel_info reply arrives, the kernel is idle.
110 // When the kernel_info reply arrives, the kernel is idle.
108 $kernel_ind_icon.attr('class','icon-circle').attr('title','Kernel Busy');
111 $kernel_ind_icon.attr('class','ipython-kernel-busy').attr('title','Kernel Busy');
109
112
110 $([IPython.events]).on('status_started.Kernel', function (evt, data) {
113 $([IPython.events]).on('status_started.Kernel', function (evt, data) {
111 data.kernel.kernel_info(function () {
114 data.kernel.kernel_info(function () {
General Comments 0
You need to be logged in to leave comments. Login now