From 600ce65a6163d668b7cd399274fd12afb5e6a24b 2012-05-31 20:08:33 From: Takafumi Arakaki Date: 2012-05-31 20:08:33 Subject: [PATCH] Reduce repeated code regarding restarting events --- diff --git a/IPython/frontend/html/notebook/static/js/notificationwidget.js b/IPython/frontend/html/notebook/static/js/notificationwidget.js index 26158b9..7a4df82 100644 --- a/IPython/frontend/html/notebook/static/js/notificationwidget.js +++ b/IPython/frontend/html/notebook/static/js/notificationwidget.js @@ -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'); },