Skip to content

Commit

Permalink
Reduce repeated code regarding restarting events
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf authored and ellisonbg committed May 31, 2012
1 parent 28f7c80 commit 600ce65
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
},
Expand Down

0 comments on commit 600ce65

Please sign in to comment.