From 8a6eb04dbe86083fda6ac9b9666cde9e87b0ab0d Mon Sep 17 00:00:00 2001
From: Stephan Porada <sporada@uni-bielefeld.de>
Date: Thu, 19 Mar 2020 12:04:14 +0100
Subject: [PATCH] Easy fix

---
 app/static/js/nopaque.analyse_corpus.js | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/app/static/js/nopaque.analyse_corpus.js b/app/static/js/nopaque.analyse_corpus.js
index 2dd914e2..d968b3cb 100644
--- a/app/static/js/nopaque.analyse_corpus.js
+++ b/app/static/js/nopaque.analyse_corpus.js
@@ -128,7 +128,7 @@ function recieveResults(response) {
   result["loaded_match_count"] += Object.keys(chunk["matches"]).length;
   console.log("After current match count", result["loaded_match_count"]);
   let queryResultsMetadataElement = document.getElementById("query-results-metadata");
-  queryResultsMetadataElement.innerHTML = `<p>The query resulted in a total of ${chunk["match_count"]} matches. </p> <p> ${result["loaded_match_count"]} of ${result["match_count"]} matches in ${count_corpus_files} corpus files have been loaded.<i class="material-icons" id="tool-tip-info">help</i></p>`;
+  queryResultsMetadataElement.innerHTML = `<p>The query resulted in a total of ${chunk["match_count"]} matches. </p> <p> ${result["loaded_match_count"]} of ${result["match_count"]} matches in ${count_corpus_files} corpus files have been loaded.</p><p><i class="material-icons" id="tooltip-info">help</i>The Server is still sending your results. Functions like "Export Results" and "Match Inspect" will be available after all matches have been loaded.</p>`;
   let queryResultsInteractionElement = document.getElementById("interaction-elements");
   queryResultsInteractionElement.appendChild(exportQueryResultsElement);
   let queryResultsHeadElement = document.getElementById("query-results-head");
@@ -137,19 +137,13 @@ function recieveResults(response) {
   console.log(queryStatus);
   queryResultsDeterminateElement.style["width"] = `${queryStatus}%`;
   console.log(queryResultsDeterminateElement.style["width"]);
-  toolTipInfoElement = document.getElementById("tool-tip-info");
-  M.Tooltip.init(toolTipInfoElement, {"html": `<p>The Server is still sending you your results. Functions like "Export Results" and "Match Inspect" will be available after all matches have been loaded.</p>`,
-  "inDuration": 1500,
-  "margin": 15,
-  "position": "top",
-  "transitionMovement": 0});
+
   // 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");
-    toolTipInfoElement.classList.add("hide");
     queryResultsMetadataElement.innerHTML = `<p>The query resulted in a total of ${chunk["match_count"]} matches. </p> <p> ${result["loaded_match_count"]} of ${result["match_count"]} matches in ${count_corpus_files} corpus files have been loaded.<i class="material-icons">check_circle</i></p>`;
     activateInspect();
   }
-- 
GitLab