We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
data-
1 parent 8c154c6 commit eb95fd2Copy full SHA for eb95fd2
web_src/js/features/tablesort.js
@@ -1,8 +1,8 @@
1
export default function initTableSort() {
2
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');
+ const sorttAsc = header.getAttribute('data-sortt-asc');
+ const sorttDesc = header.getAttribute('data-sortt-desc');
+ const sorttDefault = header.getAttribute('data-sortt-default');
6
header.addEventListener('click', () => {
7
tableSort(sorttAsc, sorttDesc, sorttDefault);
8
});
0 commit comments