Merge branch 'development' of gitlab.ub.uni-bielefeld.de:sfb1288inf/opaque into development

This commit is contained in:
Patrick Jentsch 2020-04-17 11:07:47 +02:00
commit 1f0a87a474
2 changed files with 5 additions and 5 deletions

View File

@ -259,9 +259,8 @@ class ResultsList extends List {
console.log(tokenHTMLArray); console.log(tokenHTMLArray);
console.log(uniqueS); console.log(uniqueS);
partElement = document.createElement("div");
for (let sId of uniqueS) { for (let sId of uniqueS) {
let htmlSentence = `<div class="sentence" data-sid="${sId}"></div>`; let htmlSentence = `<span class="sentence" data-sid="${sId}"></span>`;
let sentenceElement = this.HTMLTStrToElement(htmlSentence); let sentenceElement = this.HTMLTStrToElement(htmlSentence);
for (let tokenElement of tokenHTMLArray) { for (let tokenElement of tokenHTMLArray) {
if (tokenElement.dataset.sid == sId) { if (tokenElement.dataset.sid == sId) {
@ -271,9 +270,8 @@ class ResultsList extends List {
continue; continue;
} }
} }
partElement.appendChild(sentenceElement); contextResultsElement.appendChild(sentenceElement);
} }
contextResultsElement.appendChild(partElement);
if (expertModeSwitchElement.checked) { if (expertModeSwitchElement.checked) {
this.expertModeOn(); this.expertModeOn();

View File

@ -228,7 +228,9 @@
</form> </form>
</div> </div>
<div class="divider"></div> <div class="divider"></div>
<div class="section" id="context-results"> <div class="section">
<h5>Context</h5>
<div class="row" id="context-results" style="overflow-wrap: break-word;"></div>
</div> </div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">