mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 12:22:47 +00:00 
			
		
		
		
	Query Builder fix and placeholder change
This commit is contained in:
		@@ -485,7 +485,7 @@ class ConcordanceQueryBuilder {
 | 
			
		||||
    let tokenQueryContent = ''; //for ButtonFactory(prettyQueryText)
 | 
			
		||||
    let tokenQueryText = ''; //for ButtonFactory(queryText)
 | 
			
		||||
    this.elements.cancelBool = false;
 | 
			
		||||
    let tokenIsEmpty = true;
 | 
			
		||||
    let tokenIsEmpty = false;
 | 
			
		||||
 | 
			
		||||
    if (this.elements.ignoreCase.checked) {
 | 
			
		||||
      c = ' %c';
 | 
			
		||||
@@ -497,8 +497,8 @@ class ConcordanceQueryBuilder {
 | 
			
		||||
    for (let element of this.elements.tokenQuery.childNodes) {
 | 
			
		||||
      tokenQueryContent += ' ' + element.firstChild.data + ' ';
 | 
			
		||||
      tokenQueryText += decodeURI(element.dataset.tokentext);
 | 
			
		||||
      if (element.innerTe8888xt.indexOf('empty token') !== -1) {
 | 
			
		||||
        emptyTokenCheck = false;
 | 
			
		||||
      if (element.innerText.indexOf('empty token') !== -1) {
 | 
			
		||||
        tokenIsEmpty = true;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@@ -561,6 +561,7 @@ class ConcordanceQueryBuilder {
 | 
			
		||||
      if (tokenIsEmpty === false) {
 | 
			
		||||
        tokenQueryText = '[' + tokenQueryText + ']';
 | 
			
		||||
        }
 | 
			
		||||
      console.log(tokenQueryText);
 | 
			
		||||
      this.queryChipFactory('token', tokenQueryContent, tokenQueryText);
 | 
			
		||||
      this.hideEverything();
 | 
			
		||||
      this.elements.positionalAttrArea.classList.add('hide');
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user