From f3575cde26a0c45d2d65a82a59de3ed5c0ff1ff5 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Sun, 22 Feb 2015 12:13:29 +0200 Subject: [PATCH] minor update process fix --- static/js/main.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/static/js/main.js b/static/js/main.js index 1f35284..6d3cda1 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -1608,7 +1608,7 @@ function doUpdate() { } else { runConfirmDialog('New version available: ' + data.update_version + '. Update?', function () { - showModalDialog('
This may take a few minutes.
'); + showModalDialog('
Updating. This may take a few minutes.
'); ajax('POST', baseUri + 'update/?version=' + data.update_version, null, function () { var count = 0; function checkServerUpdate() { @@ -1633,6 +1633,11 @@ function doUpdate() { } setTimeout(checkServerUpdate, 10000); + + }, function (e) { /* error */ + runAlertDialog('The update process has failed!', function () { + window.location.reload(true); + }); }); return false; /* prevents hiding the modal container */ -- 2.39.5