Prevent dismissing the modal on the shutdown page

This commit is contained in:
JonnyWong16 2018-02-17 15:05:54 -08:00
parent 066a95d209
commit d473bb3058

View file

@ -41,13 +41,16 @@
<%def name="javascriptIncludes()"> <%def name="javascriptIncludes()">
<script> <script>
// Remove the update bar
$('#updatebar').remove();
// Use p.countdown as container, pass redirect, duration, and optional message // Use p.countdown as container, pass redirect, duration, and optional message
$(".countdown").countdown(reloadPage, ${timer}, ""); $(".countdown").countdown(reloadPage, ${timer}, "");
$('#state-change-modal').modal({
keyboard: false
})
// Make modal visible // Make modal visible
$('#state-change-modal').modal('show') $('#state-change-modal').modal({
backdrop: 'static',
keyboard: false
}).show();
// Redirect to home page after countdown. // Redirect to home page after countdown.
function reloadPage() { function reloadPage() {