mirror of
				https://codeberg.org/claui/mobile-config-firefox.git
				synced 2025-11-04 04:25:55 +00:00 
			
		
		
		
	fix previousCategory filename list
This commit is contained in:
		
							parent
							
								
									42668cc7d9
								
							
						
					
					
						commit
						898dadff64
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -15,7 +15,7 @@ a:visited{ color: rgb(150,100,200) }
 | 
			
		|||
a:hover{ color: rgb(200,150,100) }
 | 
			
		||||
pre:empty{ display: none }
 | 
			
		||||
.category{ padding: 0.2em 1em; cursor: pointer; text-transform: capitalize }
 | 
			
		||||
.category::after{ content: " (" attr(data-value) ")"}
 | 
			
		||||
#categories > .category::after{ content: " (" attr(data-value) ")"}
 | 
			
		||||
 | 
			
		||||
.currentCategory,
 | 
			
		||||
.category:hover{ background-color: grey }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -47,13 +47,13 @@ function fetchWithType(url){
 | 
			
		|||
 | 
			
		||||
let previousCategory = new (function(){
 | 
			
		||||
  let current = null;
 | 
			
		||||
  let fileNames = null;
 | 
			
		||||
  this.fileNames = null;
 | 
			
		||||
  this.set = function(t,secondary){
 | 
			
		||||
    current&¤t.classList.remove("currentCategory");
 | 
			
		||||
    current = t;
 | 
			
		||||
    current.classList.add("currentCategory");
 | 
			
		||||
    
 | 
			
		||||
    fileNames = DB.query(t.textContent,secondary?filNames:null);
 | 
			
		||||
    this.fileNames = DB.query(t.textContent,secondary?this.filNames:null);
 | 
			
		||||
  };
 | 
			
		||||
  return this
 | 
			
		||||
})()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue