Added in a loading indicator.
This commit is contained in:
parent
c1bb74433b
commit
9352923aa0
@ -561,7 +561,9 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive" style="margin-top:40px;" id="eppTempOffsets">
|
||||||
|
|
||||||
|
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -582,15 +584,23 @@
|
|||||||
<th scope="col">Hours</th>
|
<th scope="col">Hours</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id ="EpiProTempVerification"></tbody>
|
<tbody id ="EpiProTempVerification">
|
||||||
|
<tr>
|
||||||
|
<td id="loadingRow" colspan="16">Loading EPP Temperature Data...
|
||||||
|
<div class="spinner-border text-danger" role="status">
|
||||||
|
<span class="sr-only">Loading...</span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
loadEPPTempOffsets();
|
||||||
appendDiv();
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -224,20 +224,24 @@ function compareStrings(isDate, dir, string1, string2) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function appendDiv() {
|
function loadEPPTempOffsets() {
|
||||||
const tbody = document.getElementById("EpiProTempVerification");
|
const tbody = document.getElementById("EpiProTempVerification");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
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',
|
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) {
|
success: function (r) {
|
||||||
if (r == null)
|
if (r == null) {
|
||||||
ShowErrorMessage("Invalid data");
|
r = "<tr><td colspan='16'>Error getting EPP Temp Offset data...</td></tr>"
|
||||||
|
tbody.innerHTML = r;
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
tbody.innerHTML = r;
|
tbody.innerHTML = r;
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
error: function (e, _ajaxOptions, ex) {
|
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;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user