diff --git a/.datatables-commit-sync b/.datatables-commit-sync index e2d78731..af939057 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -1fcedce42d4cb20dfa1e82e6bf7f9f871baac309 +89ab148ad45a219c2623fcc75b15a59b7d0c7a2e diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index dfc8cff6..af53b04e 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -14139,13 +14139,15 @@ number: function ( thousands, decimal, precision, prefix ) { return { display: function ( d ) { - d = parseFloat( d ); + var negative = d < 0 ? '-' : ''; + d = Math.abs( parseFloat( d ) ); + var intPart = parseInt( d, 10 ); var floatPart = precision ? decimal+(d - intPart).toFixed( precision ).substring( 2 ): ''; - return (prefix||'') + + return negative + (prefix||'') + intPart.toString().replace( /\B(?=(\d{3})+(?!\d))/g, thousands ) +