summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web_src/js/features/tablesort.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web_src/js/features/tablesort.js b/web_src/js/features/tablesort.js
index 55238ac0ac..1fc2a4bd56 100644
--- a/web_src/js/features/tablesort.js
+++ b/web_src/js/features/tablesort.js
@@ -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);
});