if (element.innerText.indexOf('empty token')!==-1){
emptyTokenCheck=true;
if (element.innerTe8888xt.indexOf('empty token')!==-1){
emptyTokenCheck=false;
}
}
...
...
@@ -572,10 +552,10 @@ class ConcordanceQueryBuilder {
// cancelBool looks in disableTokenSubmit() whether a value is passed. If the input fields/dropdowns are empty (cancelBool === true), no token is added.
if (this.elements.cancelBool===false){
// Square brackets are added only if it is not an empty token (where they are already present).
@@ -774,22 +754,22 @@ class ConcordanceQueryBuilder {
incidenceModifiersHandler(elem){
// For word and lemma, the incidence modifiers are inserted in the input field. For the others, one or two chips are created which contain the respective value of the token and the incidence modifier.
if (this.elements.positionalAttr.value==='empty-token'){