Added in a loading indicator.
This commit is contained in:
@ -224,20 +224,24 @@ function compareStrings(isDate, dir, string1, string2) {
|
||||
return false;
|
||||
}
|
||||
|
||||
function appendDiv() {
|
||||
function loadEPPTempOffsets() {
|
||||
const tbody = document.getElementById("EpiProTempVerification");
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'https://oi-metrology-viewer-prod.mes.infineon.com/api/InfinityQSV3/epi-pro-temp-verification/?night=44&night=46&night=52&night=54',
|
||||
success: function (r) {
|
||||
if (r == null)
|
||||
ShowErrorMessage("Invalid data");
|
||||
if (r == null) {
|
||||
r = "<tr><td colspan='16'>Error getting EPP Temp Offset data...</td></tr>"
|
||||
tbody.innerHTML = r;
|
||||
}
|
||||
else {
|
||||
tbody.innerHTML = r;
|
||||
}
|
||||
|
||||
},
|
||||
error: function (e, _ajaxOptions, ex) {
|
||||
DisplayWSMessage("error", "There was an error getting data.", e, ex);
|
||||
}
|
||||
r = "<tr><td colspan='16'>Error getting EPP Temp Offset data...</td></tr>"
|
||||
tbody.innerHTML = r;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user