Remove some useless loading animations

This commit is contained in:
Stephan Porada 2020-04-07 09:53:17 +02:00
parent 49dc7c4cdb
commit 6260f2436a
2 changed files with 3 additions and 11 deletions

View File

@ -111,14 +111,11 @@ function showMatchContext(response) {
let partElement
let token;
let tokenElement;
let tokenElements;
console.log("###### match_context ######");
console.log("Incoming data:", contextData);
expertModeSwitchElement = document.getElementById("display-options-form-expert_mode");
contextResultsElement = document.getElementById("context-results");
contextModalLoading = document.getElementById("context-modal-loading");
contextModalLoading.classList.add("hide");
contextModalReady = document.getElementById("context-modal-ready");
contextModalReady.classList.remove("hide");
if (contextData.cpos_ranges == true) {
// python range like function from MDN https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from#Sequence_generator_(range)
@ -149,7 +146,7 @@ function showMatchContext(response) {
contextResultsElement.append(partElement);
}
if (expertModeSwitchElement.checked) {
let tokenElements = partElement.getElementsByClassName("token");
tokenElements = partElement.getElementsByClassName("token");
expertModeOn(tokenElements, contextData);
}
}

View File

@ -199,12 +199,7 @@
<div id="context-modal" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Match context and information</h4>
<div id="context-modal-loading">
<div class="progress">
<div class="indeterminate"></div>
</div>
</div>
<div id="context-modal-ready" class="hide">
<div>
<div id="context-results"></div>
</div>
</div>