Bug: Plugin used to break on empty strings.

Someone reported an issue about this plugin.
I'm publishing a fix here so others can benefit as well.
pull/44/head
Robert Sedovšek 11 years ago
parent ba70c554b1
commit 65832cf856

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

Loading…
Cancel
Save