Reduce repeated code regarding restarting events

This commit is contained in:
Takafumi Arakaki 2012-05-22 02:10:56 +02:00 committed by Brian Granger
parent db5393c618
commit 0df931d69a

View File

@ -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');
},