mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
Reduce repeated code regarding restarting events
This commit is contained in:
parent
db5393c618
commit
0df931d69a
@ -65,8 +65,7 @@ var IPython = (function (IPython) {
|
||||
title: "Dead kernel",
|
||||
buttons : {
|
||||
"Restart": function () {
|
||||
IPython.save_widget.update_document_title();
|
||||
that.set_message("Restarting kernel",500);
|
||||
$([IPython.events]).trigger('status_restarting.Kernel');
|
||||
IPython.notebook.start_kernel();
|
||||
$(this).dialog('close');
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user