if (element.innerText.indexOf("empty token")!==-1){
if (element.innerText.indexOf("empty token")!==-1){
emptyTokenCheck=true;
}
}
if (this.elements.tokenQueryFilled===false){
if (this.elements.tokenQueryFilled===false){
switch (this.elements.positionalAttr.value){
case"word":
if (this.elements.wordInput.value===""){
...
...
@@ -562,7 +570,7 @@ 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){
if (this.elements.cancelBool===false){
// Square brackets are added only if it is not an empty token (where they are already present).
if (emptyTokenCheck===false){
tokenQueryText='['+tokenQueryText+']';
...
...
@@ -813,9 +821,9 @@ class ConcordanceQueryBuilder {
lettokenQueryText;
letc;
if (this.elements.ignoreCase.checked){
if (this.elements.ignoreCase.checked){
c=' %c';
}else{
}else{
c='';
}
...
...
@@ -859,10 +867,17 @@ class ConcordanceQueryBuilder {