|
|
@ -31,6 +31,6 @@
|
|
|
|
jQuery.fn.dataTable.Api.register( 'sum()', function () {
|
|
|
|
jQuery.fn.dataTable.Api.register( 'sum()', function () {
|
|
|
|
return this.flatten().reduce( function ( a, b ) {
|
|
|
|
return this.flatten().reduce( function ( a, b ) {
|
|
|
|
return (a*1) + (b*1); // cast values in-case they are strings
|
|
|
|
return (a*1) + (b*1); // cast values in-case they are strings
|
|
|
|
} );
|
|
|
|
}, 0 );
|
|
|
|
} );
|
|
|
|
} );
|
|
|
|
|
|
|
|
|
|
|
|