mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-30 21:26:17 +01:00
Added missing data-
prefix. (#17884)
This commit is contained in:
parent
4f98e82427
commit
fbf3208229
1 changed files with 3 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
|||
export default function initTableSort() {
|
||||
for (const header of document.querySelectorAll('th[data-sortt-asc]') || []) {
|
||||
const sorttAsc = header.getAttribute('sortt-asc');
|
||||
const sorttDesc = header.getAttribute('sortt-desc');
|
||||
const sorttDefault = header.getAttribute('sortt-default');
|
||||
const sorttAsc = header.getAttribute('data-sortt-asc');
|
||||
const sorttDesc = header.getAttribute('data-sortt-desc');
|
||||
const sorttDefault = header.getAttribute('data-sortt-default');
|
||||
header.addEventListener('click', () => {
|
||||
tableSort(sorttAsc, sorttDesc, sorttDefault);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue