customjs
This commit is contained in:
@@ -1682,7 +1682,7 @@ function loadsortadscroll() {
|
||||
|
||||
}
|
||||
}
|
||||
console.log({ tipodato })
|
||||
//console.log({ tipodato })
|
||||
tthis.closest('tr').addClass('tsorterblock');
|
||||
setTimeout(
|
||||
function () {
|
||||
@@ -1897,22 +1897,14 @@ function loadsortadscroll() {
|
||||
var texto = null;
|
||||
var texton = 0;
|
||||
if (tdtexto && tdtexto.length > index) {
|
||||
texto = $(tdtexto[index]).data('order');
|
||||
|
||||
if (texto.length > 0) {
|
||||
var vnum = texto.replace("$", "").replace("%", "").replace("-", "").replace("(", "").replace(")", "").replace(re, "").trim();
|
||||
if (vnum.length > 0) {
|
||||
if ($.isNumeric(vnum)) {
|
||||
texton = Number(vnum);
|
||||
}
|
||||
}
|
||||
}
|
||||
texton = Number($(tdtexto[index]).data('order'));
|
||||
|
||||
} else {
|
||||
texto = null;
|
||||
}
|
||||
return { index: i, value: texton, obj: el };
|
||||
});
|
||||
console.log(mapped)
|
||||
//console.log(mapped)
|
||||
mapped.sort(function (a, b) {
|
||||
return (+(a.value > b.value) || +(a.value === b.value) - 1) * multiplicador;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user