mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Fix 2
This commit is contained in:
parent
41f24a03b4
commit
1ed696f558
@ -56,4 +56,8 @@ function queryRenderResults(payload) {
|
||||
queryResultsExportElement.classList.remove("disabled");
|
||||
activateInspect();
|
||||
}
|
||||
if (expertModeSwitchElement) {
|
||||
let initialTokenElements = document.getElementsByClassName("token");
|
||||
expertModeOn(initialTokenElements, resultsJSON);
|
||||
}
|
||||
}
|
@ -225,8 +225,6 @@ function expertModeOn(tokenElements, results) {
|
||||
let token;
|
||||
|
||||
console.log("expertModeOn!");
|
||||
console.log(results);
|
||||
console.log("hier:", tokenElements);
|
||||
for (let tokenElement of tokenElements) {
|
||||
tokenElement.classList.add("chip");
|
||||
tokenElement.classList.add("hoverable");
|
||||
|
@ -280,6 +280,7 @@
|
||||
receivedMatchCountElement = document.getElementById("received-match-count");
|
||||
matchCountElement = document.getElementById("match-count");
|
||||
textLookupCountElement = document.getElementById("text-lookup-count");
|
||||
var expertModeSwitchElement = document.getElementById("display-options-form-expert_mode");
|
||||
|
||||
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
@ -345,7 +346,6 @@
|
||||
}
|
||||
|
||||
// epxert mode table view
|
||||
expertModeSwitchElement = document.getElementById("display-options-form-expert_mode");
|
||||
expertModeSwitchElement.addEventListener("change", function(event) {
|
||||
let currentTokenElements = document.getElementsByClassName("token");
|
||||
let paginationElements = document.getElementsByClassName("pagination");
|
||||
|
Loading…
Reference in New Issue
Block a user