pull/302/merge
Lode Claassen 4 years ago committed by GitHub
commit 9bd2a1d505
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -54,7 +54,8 @@ $.fn.dataTable.moment = function ( format, locale, reverseEmpties ) {
} ); } );
// Add sorting method - use an integer for the sorting // Add sorting method - use an integer for the sorting
types.order[ 'moment-'+format+'-pre' ] = function ( d ) { var formatKey = format.replace(/[^a-zA-Z0-9-]/g, '-');
types.order[ 'moment-'+formatKey+'-pre' ] = function ( d ) {
if ( d ) { if ( d ) {
// Strip HTML tags and newline characters if possible // Strip HTML tags and newline characters if possible
if ( d.replace ) { if ( d.replace ) {

Loading…
Cancel
Save