Fix errormessage after update
This commit is contained in:
parent
bd6b5ac873
commit
7671a1d5c8
|
@ -261,6 +261,7 @@ $(function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateTimer() {
|
function updateTimer() {
|
||||||
|
var no_response = 0;
|
||||||
$.ajax({
|
$.ajax({
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
url: getPath() + "/get_updater_status",
|
url: getPath() + "/get_updater_status",
|
||||||
|
@ -271,8 +272,12 @@ $(function() {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function error() {
|
error: function error() {
|
||||||
$("#DialogContent").html(updateText[11]);
|
// Server has to restart in 60 Sek. otherwise output error message
|
||||||
cleanUp();
|
no_response += 1;
|
||||||
|
if (no_response > 30) {
|
||||||
|
$("#DialogContent").html(updateText[11]);
|
||||||
|
cleanUp();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
timeout: 2000
|
timeout: 2000
|
||||||
});
|
});
|
||||||
|
@ -447,7 +452,7 @@ $(function() {
|
||||||
$("#spinner2").show();
|
$("#spinner2").show();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
url: window.location.pathname + "/../../shutdown",
|
url: getPath() + "/shutdown",
|
||||||
data: {"parameter":2},
|
data: {"parameter":2},
|
||||||
success: function success(data) {
|
success: function success(data) {
|
||||||
$("#spinner2").hide();
|
$("#spinner2").hide();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user