diff options
Diffstat (limited to 'modules-available/backup')
-rw-r--r-- | modules-available/backup/templates/restore.html | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/modules-available/backup/templates/restore.html b/modules-available/backup/templates/restore.html index 5de7d1cc..c9c19d2b 100644 --- a/modules-available/backup/templates/restore.html +++ b/modules-available/backup/templates/restore.html @@ -34,11 +34,10 @@ function startRebootPoll() { - $('#waiting').show(); - $('#waiting').prepend('<span class="glyphicon glyphicon-refresh slx-rotation"></span>'); + $('#waiting').show().prepend('<span class="glyphicon glyphicon-refresh slx-rotation"></span>'); $('#dots').text('{{lang_waitReboot}}'); slxDotInterval = setInterval(function() { $('#dots').text($('#dots').text() + '..'); }, 3000); - setTimeout('rebootPoll()', 10000); + setTimeout(rebootPoll, 10000); } function rebootPoll() @@ -48,7 +47,7 @@ slxDotInterval = false; } $('#dots').text($('#dots').text() + '..'); - slxTimeoutId = setTimeout('rebootPoll()', 3500); + slxTimeoutId = setTimeout(rebootPoll, 3500); $.ajax({url: "index.php?do=Main", timeout: 3000}).success(function(data, textStatus, jqXHR) { if (textStatus !== "success" && textStatus !== "notmodified") return; @@ -56,7 +55,7 @@ return; clearTimeout(slxTimeoutId); setTimeout(function() { - window.location.replace("index.php?do=Main&message[]=success%7Crestore-done"); + window.location.replace("index.php?do=Main&message[]=success%7Cbackup.restore-done"); }, 3500); }); } |