Merge pull request #253 from pramen/patch-1

Ordering - file size: Fix exception when data field is empty
pull/254/head
Allan Jardine 9 years ago
commit baf27cccce

@ -29,6 +29,10 @@ jQuery.fn.dataTable.ext.type.order['file-size-pre'] = function ( data ) {
pb: 1000000000000000 pb: 1000000000000000
}; };
var multiplier = multipliers[matches[2].toLowerCase()]; if (matches) {
return parseFloat( matches[1] ) * multiplier; var multiplier = multipliers[matches[2].toLowerCase()];
return parseFloat( matches[1] ) * multiplier;
} else {
return -1;
};
}; };

Loading…
Cancel
Save