diff --git a/app/static/js/nopaque.lists.js b/app/static/js/nopaque.lists.js index 08c5f680..56d7ab3b 100644 --- a/app/static/js/nopaque.lists.js +++ b/app/static/js/nopaque.lists.js @@ -259,9 +259,8 @@ class ResultsList extends List { console.log(tokenHTMLArray); console.log(uniqueS); - partElement = document.createElement("div"); for (let sId of uniqueS) { - let htmlSentence = `
`; + let htmlSentence = ``; let sentenceElement = this.HTMLTStrToElement(htmlSentence); for (let tokenElement of tokenHTMLArray) { if (tokenElement.dataset.sid == sId) { @@ -271,9 +270,8 @@ class ResultsList extends List { continue; } } - partElement.appendChild(sentenceElement); + contextResultsElement.appendChild(sentenceElement); } - contextResultsElement.appendChild(partElement); if (expertModeSwitchElement.checked) { this.expertModeOn(); diff --git a/app/templates/corpora/analyse_corpus.html.j2 b/app/templates/corpora/analyse_corpus.html.j2 index 2c5ecb0f..62fefdf9 100644 --- a/app/templates/corpora/analyse_corpus.html.j2 +++ b/app/templates/corpora/analyse_corpus.html.j2 @@ -228,7 +228,9 @@ -