mirror of
				https://github.com/SuperBFG7/ympd
				synced 2025-11-04 15:52:59 +00:00 
			
		
		
		
	Fix: improve search card pagination
This commit is contained in:
		@@ -325,3 +325,7 @@ div.key {
 | 
			
		||||
ol#searchCrumb {
 | 
			
		||||
 padding: .5rem;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.nodropdown::after {
 | 
			
		||||
   content: none;
 | 
			
		||||
}
 | 
			
		||||
@@ -2100,13 +2100,16 @@ function setPagination(total, returned) {
 | 
			
		||||
                    ( j + 1) + '</button>';
 | 
			
		||||
            }
 | 
			
		||||
            document.getElementById(cat + p[i] + 'Pages').innerHTML = pl;
 | 
			
		||||
            document.getElementById(cat + p[i] + 'Page').classList.remove('nodropdown');
 | 
			
		||||
        }
 | 
			
		||||
        else if (total == -1) {
 | 
			
		||||
            document.getElementById(cat + p[i] + 'Page').setAttribute('disabled', 'disabled');
 | 
			
		||||
            document.getElementById(cat + p[i] + 'Page').innerText = (app.current.page / settings.maxElementsPerPage + 1);
 | 
			
		||||
            document.getElementById(cat + p[i] + 'Page').classList.add('nodropdown');
 | 
			
		||||
        }
 | 
			
		||||
        else {
 | 
			
		||||
            document.getElementById(cat + p[i] + 'Page').setAttribute('disabled', 'disabled');
 | 
			
		||||
            document.getElementById(cat + p[i] + 'Page').classList.add('nodropdown');
 | 
			
		||||
        }
 | 
			
		||||
    
 | 
			
		||||
        if (total > app.current.page + settings.maxElementsPerPage || total == -1 && returned >= settings.maxElementsPerPage) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user