|
|
|
@ -19,9 +19,10 @@ jQuery.fn.dataTableExt.aTypes.unshift(
|
|
|
|
|
function ( sData )
|
|
|
|
|
{
|
|
|
|
|
var deformatted = sData.replace(/[^\d\-\.\/a-zA-Z]/g,'');
|
|
|
|
|
if ( $.isNumeric( deformatted ) || deformatted === "-" ) {
|
|
|
|
|
return 'formatted-num';
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
var isNumeric = !isNaN( deformatted - parseFloat( deformatted ) );
|
|
|
|
|
|
|
|
|
|
return isNumeric || deformatted === "-" ?
|
|
|
|
|
'formatted-num' :
|
|
|
|
|
null;
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|