1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-02 08:57:32 -04:00

Added missing data- prefix. (#17884)

This commit is contained in:
KN4CK3R 2021-12-02 17:36:00 +01:00 committed by GitHub
parent 4f98e82427
commit fbf3208229
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}); });