diff options
author | Simon Rettberg | 2014-12-02 19:22:48 +0100 |
---|---|---|
committer | Simon Rettberg | 2014-12-02 19:22:48 +0100 |
commit | ba2a49e9875eda489385e370bb9f2259779caa7b (patch) | |
tree | 2654d7b4a6bf99d584e146f7708c75a5b8beaeac /templates/backup | |
parent | Fix wrong event type when displaying event log (diff) | |
download | slx-admin-ba2a49e9875eda489385e370bb9f2259779caa7b.tar.gz slx-admin-ba2a49e9875eda489385e370bb9f2259779caa7b.tar.xz slx-admin-ba2a49e9875eda489385e370bb9f2259779caa7b.zip |
Tweaks and fixes
Diffstat (limited to 'templates/backup')
-rw-r--r-- | templates/backup/restore.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/backup/restore.html b/templates/backup/restore.html index 2e33beb3..e613bdf4 100644 --- a/templates/backup/restore.html +++ b/templates/backup/restore.html @@ -51,8 +51,12 @@ $.ajax({url: "index.php?do=Main", timeout: 3000}).success(function(data, textStatus, jqXHR) { if (textStatus !== "success" && textStatus !== "notmodified") return; + if (data.indexOf('Connecting to the local database failed') > -1) + return; clearTimeout(slxTimeoutId); - window.location.replace("index.php?do=Main&message[]=success%7Crestore-done"); + setTimeout(function() { + window.location.replace("index.php?do=Main&message[]=success%7Crestore-done"); + }, 2000); }); } </script> |