diff --git a/app/static/js/CorpusAnalysis/QueryBuilder.js b/app/static/js/CorpusAnalysis/QueryBuilder.js index e16a1e41..f9a10256 100644 --- a/app/static/js/CorpusAnalysis/QueryBuilder.js +++ b/app/static/js/CorpusAnalysis/QueryBuilder.js @@ -12,6 +12,7 @@ class ConcordanceQueryBuilder { concordanceQueryBuilderButton: document.querySelector('#concordance-query-builder-button'), closeQueryBuilder: document.querySelector('#close-query-builder'), queryBuilderTutorialModal: document.querySelector('#query-builder-tutorial-modal'), + valueValidator: true, //#region QueryBuilder Elements @@ -206,7 +207,6 @@ class ConcordanceQueryBuilder { } buttonfactory(dataType, prettyText, queryText) { - window.location.href = '#query-container'; this.elements.counter += 1; queryText = encodeURI(queryText); @@ -226,7 +226,6 @@ class ConcordanceQueryBuilder { } else if (this.elements.yourQuery.lastChild.dataset.type === 'text-annotation') { this.elements.yourQuery.insertBefore(buttonElement, this.elements.yourQuery.lastChild); } - this.elements.queryContainer.classList.remove('hide'); this.queryPreviewBuilder(); @@ -252,25 +251,30 @@ class ConcordanceQueryBuilder { //#region Drag&Drop Events dragStartHandler(event) { + // Creates element with the class 'target' and all necessary drop functions, in which drop content can be released this.elements.dropButton = event.target; let targetChip = `