Show More
@@ -142,8 +142,13 define([ | |||||
142 | }); |
|
142 | }); | |
143 |
|
143 | |||
144 | this.events.on('status_autorestarting.Kernel', function (evt, info) { |
|
144 | this.events.on('status_autorestarting.Kernel', function (evt, info) { | |
145 |
// |
|
145 | // Only show the dialog on the first restart attempt. This | |
146 | if (info.attempt == 1) { |
|
146 | // number gets tracked by the `Kernel` object and passed | |
|
147 | // along here, because we don't want to show the user 5 | |||
|
148 | // dialogs saying the same thing (which is the number of | |||
|
149 | // times it tries restarting). | |||
|
150 | if (info.attempt === 1) { | |||
|
151 | ||||
147 | // hide existing modal dialog |
|
152 | // hide existing modal dialog | |
148 | $(".modal").modal('hide'); |
|
153 | $(".modal").modal('hide'); | |
149 |
|
154 |
General Comments 0
You need to be logged in to leave comments.
Login now