diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js
index 05eab03..5388e3f 100644
--- a/IPython/html/static/notebook/js/notebook.js
+++ b/IPython/html/static/notebook/js/notebook.js
@@ -123,6 +123,18 @@ var IPython = (function (IPython) {
var index = that.find_cell_index(data.cell);
that.select(index);
});
+
+ $([IPython.events]).on('status_autorestarting.Kernel', function () {
+ IPython.dialog.modal({
+ title: "Kernel Restarting",
+ body: "The kernel appears to have died. It will restart automatically.",
+ buttons: {
+ OK : {
+ class : "btn-primary"
+ }
+ }
+ });
+ });
$(document).keydown(function (event) {
diff --git a/IPython/html/static/notebook/js/notificationarea.js b/IPython/html/static/notebook/js/notificationarea.js
index fdcf5cf..0f52b7e 100644
--- a/IPython/html/static/notebook/js/notificationarea.js
+++ b/IPython/html/static/notebook/js/notificationarea.js
@@ -86,18 +86,6 @@ var IPython = (function (IPython) {
IPython.save_widget.update_document_title();
knw.set_message("Restarting kernel", 2000);
});
-
- $([IPython.events]).on('status_autorestarting.Kernel',function () {
- IPython.dialog.modal({
- title: "Kernel Restarting",
- body: "The kernel appears to have died. It is being restarted.",
- buttons: {
- OK : {
- class : "btn-primary"
- }
- }
- });
- });
$([IPython.events]).on('status_interrupting.Kernel',function () {
knw.set_message("Interrupting kernel");