better fix for starting with Command Mode icon

Paul Ivanov 12 years ago
parent 12139b4d6e
commit 4142911ac7

@ -2048,7 +2048,6 @@ var IPython = (function (IPython) {
} else {
this.select(0);
this.handle_command_mode(this.get_cell(0));
$([IPython.events]).trigger('command_mode.Notebook');
}
this.set_dirty(false);
this.scroll_to_top();

@ -83,6 +83,9 @@ var IPython = (function (IPython) {
$modal_ind_icon.attr('class','ipython-command-mode').attr('title','Command Mode');
});
// Implicitly start off in Command mode, switching to Edit mode will trigger event
$modal_ind_icon.attr('class','ipython-command-mode').attr('title','Command Mode');
// Kernel events
$([IPython.events]).on('status_idle.Kernel',function () {
IPython.save_widget.update_document_title();
@ -105,7 +108,7 @@ var IPython = (function (IPython) {
// Start the kernel indicator in the busy state, and send a kernel_info request.
// When the kernel_info reply arrives, the kernel is idle.
$kernel_ind_icon.attr('class','icon-circle').attr('title','Kernel Busy');
$kernel_ind_icon.attr('class','ipython-kernel-busy').attr('title','Kernel Busy');
$([IPython.events]).on('status_started.Kernel', function (evt, data) {
data.kernel.kernel_info(function () {

Loading…
Cancel
Save