Explorar el Código

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

tags/v1.16.0-rc1
KN4CK3R hace 2 años
padre
commit
fbf3208229
No account linked to committer's email address
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3
    3
      web_src/js/features/tablesort.js

+ 3
- 3
web_src/js/features/tablesort.js Ver fichero

@@ -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);
});

Cargando…
Cancelar
Guardar