mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Added missing data- prefix. (#17884)
				
					
				
			This commit is contained in:
		@@ -1,8 +1,8 @@
 | 
				
			|||||||
export default function initTableSort() {
 | 
					export default function initTableSort() {
 | 
				
			||||||
  for (const header of document.querySelectorAll('th[data-sortt-asc]') || []) {
 | 
					  for (const header of document.querySelectorAll('th[data-sortt-asc]') || []) {
 | 
				
			||||||
    const sorttAsc = header.getAttribute('sortt-asc');
 | 
					    const sorttAsc = header.getAttribute('data-sortt-asc');
 | 
				
			||||||
    const sorttDesc = header.getAttribute('sortt-desc');
 | 
					    const sorttDesc = header.getAttribute('data-sortt-desc');
 | 
				
			||||||
    const sorttDefault = header.getAttribute('sortt-default');
 | 
					    const sorttDefault = header.getAttribute('data-sortt-default');
 | 
				
			||||||
    header.addEventListener('click', () => {
 | 
					    header.addEventListener('click', () => {
 | 
				
			||||||
      tableSort(sorttAsc, sorttDesc, sorttDefault);
 | 
					      tableSort(sorttAsc, sorttDesc, sorttDefault);
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user