summaryrefslogtreecommitdiffstats
path: root/web_src/js/features
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2021-12-02 17:36:00 +0100
committerGitHub <noreply@github.com>2021-12-03 00:36:00 +0800
commitfbf3208229effba63cfe2276d7d7d120f143a8b2 (patch)
tree75e5e0b66438679cecedf90d76a55b3199788038 /web_src/js/features
parent4f98e82427ea6a12b223d4f798a7dafcd01b68c8 (diff)
downloadgitea-fbf3208229effba63cfe2276d7d7d120f143a8b2.tar.gz
gitea-fbf3208229effba63cfe2276d7d7d120f143a8b2.zip
Added missing `data-` prefix. (#17884)
Diffstat (limited to 'web_src/js/features')
-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);
});