Skip to content

Commit eb95fd2

Browse files
KN4CK3RStelios Malathouras
authored and
Stelios Malathouras
committed
Added missing data- prefix. (go-gitea#17884)
1 parent 8c154c6 commit eb95fd2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web_src/js/features/tablesort.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
export default function initTableSort() {
22
for (const header of document.querySelectorAll('th[data-sortt-asc]') || []) {
3-
const sorttAsc = header.getAttribute('sortt-asc');
4-
const sorttDesc = header.getAttribute('sortt-desc');
5-
const sorttDefault = header.getAttribute('sortt-default');
3+
const sorttAsc = header.getAttribute('data-sortt-asc');
4+
const sorttDesc = header.getAttribute('data-sortt-desc');
5+
const sorttDefault = header.getAttribute('data-sortt-default');
66
header.addEventListener('click', () => {
77
tableSort(sorttAsc, sorttDesc, sorttDefault);
88
});

0 commit comments

Comments
 (0)