diff options
Diffstat (limited to 'web_src/js/features/tablesort.js')
-rw-r--r-- | web_src/js/features/tablesort.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web_src/js/features/tablesort.js b/web_src/js/features/tablesort.js index 17da2985a0..55238ac0ac 100644 --- a/web_src/js/features/tablesort.js +++ b/web_src/js/features/tablesort.js @@ -1,6 +1,8 @@ export default function initTableSort() { for (const header of document.querySelectorAll('th[data-sortt-asc]') || []) { - const {sorttAsc, sorttDesc, sorttDefault} = header.dataset; + const sorttAsc = header.getAttribute('sortt-asc'); + const sorttDesc = header.getAttribute('sortt-desc'); + const sorttDefault = header.getAttribute('sortt-default'); header.addEventListener('click', () => { tableSort(sorttAsc, sorttDesc, sorttDefault); }); |