From c69baa1dce83f01b3ed7cd02b0f9a17163f4e428 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 16 Apr 2019 13:34:59 +0200 Subject: [backup] Fix restore done message --- modules-available/backup/templates/restore.html | 9 ++++----- 1 file 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(''); + $('#waiting').show().prepend(''); $('#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); }); } -- cgit v1.2.3-55-g7522