Merge pull request #44 from sedovsek/patch-1

Bug: Plugin used to break on empty strings.
pull/45/head
Allan Jardine 11 years ago
commit 3707584eb2

@ -20,6 +20,8 @@ jQuery.extend( jQuery.fn.dataTableExt.oSort, {
date = date.replace(" ", ""); date = date.replace(" ", "");
var eu_date, year; var eu_date, year;
if (date == '') return 0;
if (date.indexOf('.') > 0) { if (date.indexOf('.') > 0) {
/*date a, format dd.mn.(yyyy) ; (year is optional)*/ /*date a, format dd.mn.(yyyy) ; (year is optional)*/
eu_date = date.split('.'); eu_date = date.split('.');

Loading…
Cancel
Save