make sure the ajax error message disappears again

This commit is contained in:
Matthias Wirth
2019-09-22 22:23:19 +02:00
parent 4f525fa95f
commit 4a77b8285d
2 changed files with 5 additions and 0 deletions

View File

@@ -344,6 +344,7 @@ function fetchData() {
FetchPending.fail(function(jqxhr, status, error) {
$("#update_error_detail").text("AJAX call failed (" + status + (error ? (": " + error) : "") + "). Maybe dump1090 is no longer running?");
$("#update_error").css('display','block');
StaleReceiverCount++;
fetchData();
});
}
@@ -1936,6 +1937,7 @@ function resetMap() {
OLMap.getView().setRotation(mapOrientation);
selectPlaneByHex(null,false);
$("#update_error").css('display','none');
}
function updateMapSize() {