diff --git a/Scripts/custom.js b/Scripts/custom.js index a8c3d1b85..fd6e9cf3d 100644 --- a/Scripts/custom.js +++ b/Scripts/custom.js @@ -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; });