summaryrefslogtreecommitdiffstats
path: root/templates/backup/restore.html
diff options
context:
space:
mode:
authorSimon Rettberg2014-12-02 19:22:48 +0100
committerSimon Rettberg2014-12-02 19:22:48 +0100
commitba2a49e9875eda489385e370bb9f2259779caa7b (patch)
tree2654d7b4a6bf99d584e146f7708c75a5b8beaeac /templates/backup/restore.html
parentFix wrong event type when displaying event log (diff)
downloadslx-admin-ba2a49e9875eda489385e370bb9f2259779caa7b.tar.gz
slx-admin-ba2a49e9875eda489385e370bb9f2259779caa7b.tar.xz
slx-admin-ba2a49e9875eda489385e370bb9f2259779caa7b.zip
Tweaks and fixes
Diffstat (limited to 'templates/backup/restore.html')
-rw-r--r--templates/backup/restore.html6
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>