forked from rDrama/rDrama
same as last commit
parent
bdde66f020
commit
f202188d66
|
@ -369,7 +369,7 @@ function sort_table(t) {
|
||||||
let attr;
|
let attr;
|
||||||
if ('sortKey' in x.dataset) {
|
if ('sortKey' in x.dataset) {
|
||||||
attr = x.dataset.sortKey;
|
attr = x.dataset.sortKey;
|
||||||
if (/^[\d-,]+$/.test(x.innerHTML)) {
|
if (/^[\d-,]+$/.test(attr)) {
|
||||||
attr = parseInt(attr.replace(/,/g, ''))
|
attr = parseInt(attr.replace(/,/g, ''))
|
||||||
}
|
}
|
||||||
} else if ('time' in x.dataset) {
|
} else if ('time' in x.dataset) {
|
||||||
|
|
Loading…
Reference in New Issue