Inspect now only works when queryFinished is true

This commit is contained in:
Stephan Porada 2020-03-19 09:25:23 +01:00
parent b12c9f85d1
commit 8147dc404a

View File

@ -137,13 +137,10 @@ function recieveResults(response) {
// enable download and inspect when query is finished
// also sets queryFinished to true
if (queryStatus === 100) {
queryFinished = true; // global declaration to set downlaod button and inspects buttons back to disabled for new queries
queryResultsDeterminateElement.parentNode.parentNode.classList.add("hide");
exportQueryResultsElement.classList.remove("disabled");
let inspectBtnElements = document.getElementsByClassName("inspect");
for (let inspectBtn of inspectBtnElements) {
inspectBtn.classList.remove("disabled");
queryFinished = true; // global declaration to set downlaod button and inspects buttons back to disabled for new queries
}
activateInspect();
}
}