mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Inspect now only works when queryFinished is true
This commit is contained in:
parent
b12c9f85d1
commit
8147dc404a
@ -137,13 +137,10 @@ function recieveResults(response) {
|
|||||||
// enable download and inspect when query is finished
|
// enable download and inspect when query is finished
|
||||||
// also sets queryFinished to true
|
// also sets queryFinished to true
|
||||||
if (queryStatus === 100) {
|
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");
|
queryResultsDeterminateElement.parentNode.parentNode.classList.add("hide");
|
||||||
exportQueryResultsElement.classList.remove("disabled");
|
exportQueryResultsElement.classList.remove("disabled");
|
||||||
let inspectBtnElements = document.getElementsByClassName("inspect");
|
activateInspect();
|
||||||
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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user