support for blank space

my last commit was missing a paranthesis..
pull/15/head
Bruno Pierri Galvao 12 years ago
parent 90fd600aba
commit bc9f1f3adc

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

Loading…
Cancel
Save