From ba2a49e9875eda489385e370bb9f2259779caa7b Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 2 Dec 2014 19:22:48 +0100 Subject: Tweaks and fixes --- templates/backup/restore.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'templates/backup/restore.html') 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); }); } -- cgit v1.2.3-55-g7522