insert italy style

comma for separator decimal
dot for thousands separator

ES:  1.005,45€
pull/320/head
Saverio 8 years ago committed by GitHub
parent 52939233ed
commit b15b1b42f3

@ -22,7 +22,9 @@
jQuery.extend( jQuery.fn.dataTableExt.oSort, { jQuery.extend( jQuery.fn.dataTableExt.oSort, {
"currency-pre": function ( a ) { "currency-pre": function ( a ) {
a = (a==="-") ? 0 : a.replace( /[^\d\-\.]/g, "" ); var foo = a.replace( /[^\d\-\.]/g, "." );
foo = foo.replace( /[^\d\-\,]/g, "" );
a = (a==="-") ? 0 : foo;
return parseFloat( a ); return parseFloat( a );
}, },

Loading…
Cancel
Save