This commit is contained in:
Patrick Jentsch
2020-04-02 14:45:02 +02:00
parent 2c93f02c11
commit 498defa386
4 changed files with 14 additions and 14 deletions

View File

@ -69,7 +69,7 @@ class CorpusAnalysisClient {
this.socket.emit("pj_corpus_analysis_init", this.corpusId);
}
sendQuery(queryStr) {
query(queryStr) {
let displayOptionsData;
let resultListOptions;

View File

@ -82,12 +82,14 @@ function activateInspect(progress) {
}
//gets result cpos infos for one dataIndex to send back to the server
function inspect(dataIndex, socket) {
function inspect(dataIndex) {
// This function should be in the AnalysisClient class as a method.
console.log("Inspect!");
console.log(results.resultsJSON.matches[dataIndex].c);
contextModal.open();
socket.emit("pj_inspect_match",
{"payload": {"cpos": results.resultsJSON.matches[dataIndex].c} });
nopaque.socket.emit("pj_corpus_analysis_inspect_match",
{payload: {first_cpos: results.resultsJSON.matches[dataIndex].c[0],
last_cpos: results.resultsJSON.matches[dataIndex].c[1]}});
}
function showMatchContext(payload) {
@ -254,4 +256,4 @@ function expertModeOff(tokenElements) {
tokenElement.classList.remove("expert-view");
tokenElement.outerHTML = tokenElement.outerHTML; // this is actually a workaround, but it works pretty fast
}
}
}