mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Fix
This commit is contained in:
parent
12586bb13d
commit
41f24a03b4
@ -21,13 +21,6 @@ function querySetup(payload) {
|
|||||||
function queryRenderResults(payload) {
|
function queryRenderResults(payload) {
|
||||||
// This is called when results are transmitted and being recieved
|
// This is called when results are transmitted and being recieved
|
||||||
console.log("Current recieved chunk:", payload.chunk);
|
console.log("Current recieved chunk:", payload.chunk);
|
||||||
// upate progress status
|
|
||||||
if (payload.progress === 100) {
|
|
||||||
queryResultsProgressElement.classList.add("hide");
|
|
||||||
queryResultsUserFeedbackElement.classList.add("hide");
|
|
||||||
queryResultsExportElement.classList.remove("disabled");
|
|
||||||
activateInspect();
|
|
||||||
}
|
|
||||||
if (payload.chunk.cpos_ranges == true) {
|
if (payload.chunk.cpos_ranges == true) {
|
||||||
results.resultsJSON["cpos_ranges"] = true;
|
results.resultsJSON["cpos_ranges"] = true;
|
||||||
} else {
|
} else {
|
||||||
@ -56,4 +49,11 @@ function queryRenderResults(payload) {
|
|||||||
receivedMatchCountElement.innerText = `${results.resultsJSON.matches.length}`;
|
receivedMatchCountElement.innerText = `${results.resultsJSON.matches.length}`;
|
||||||
textLookupCountElement.innerText = `${Object.keys(results.resultsJSON.text_lookup).length}`;
|
textLookupCountElement.innerText = `${Object.keys(results.resultsJSON.text_lookup).length}`;
|
||||||
console.log("Results recieved:", results.resultsJSON);
|
console.log("Results recieved:", results.resultsJSON);
|
||||||
|
// upate progress status
|
||||||
|
if (payload.progress === 100) {
|
||||||
|
queryResultsProgressElement.classList.add("hide");
|
||||||
|
queryResultsUserFeedbackElement.classList.add("hide");
|
||||||
|
queryResultsExportElement.classList.remove("disabled");
|
||||||
|
activateInspect();
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user