Browse Source

Added missing `data-` prefix. (#17884)

tags/v1.16.0-rc1
KN4CK3R 2 years ago
parent
commit
fbf3208229
No account linked to committer's email address
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      web_src/js/features/tablesort.js

+ 3
- 3
web_src/js/features/tablesort.js View File

@@ -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…
Cancel
Save