From 0df931d69a5551f88d7948ec0d288fd43a035262 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Tue, 22 May 2012 02:10:56 +0200 Subject: [PATCH] Reduce repeated code regarding restarting events --- IPython/frontend/html/notebook/static/js/notificationwidget.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/IPython/frontend/html/notebook/static/js/notificationwidget.js b/IPython/frontend/html/notebook/static/js/notificationwidget.js index 26158b9fc..7a4df820b 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'); },