mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	Inspect now only works when queryFinished is true
This commit is contained in:
		@@ -137,13 +137,10 @@ function recieveResults(response) {
 | 
			
		||||
  // enable download and inspect when query is finished
 | 
			
		||||
  // also sets queryFinished to true
 | 
			
		||||
  if (queryStatus === 100) {
 | 
			
		||||
    queryFinished = true; // global declaration to set downlaod button and inspects buttons back to disabled for new queries
 | 
			
		||||
    queryResultsDeterminateElement.parentNode.parentNode.classList.add("hide");
 | 
			
		||||
    exportQueryResultsElement.classList.remove("disabled");
 | 
			
		||||
    let inspectBtnElements = document.getElementsByClassName("inspect");
 | 
			
		||||
    for (let inspectBtn of inspectBtnElements) {
 | 
			
		||||
      inspectBtn.classList.remove("disabled");
 | 
			
		||||
    queryFinished = true; // global declaration to set downlaod button and inspects buttons back to disabled for new queries
 | 
			
		||||
    }
 | 
			
		||||
    activateInspect();
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user