|
|
@ -23,24 +23,19 @@
|
|
|
|
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
|
|
|
|
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
|
|
|
|
"date-eu-pre": function ( date ) {
|
|
|
|
"date-eu-pre": function ( date ) {
|
|
|
|
date = date.replace(" ", "");
|
|
|
|
date = date.replace(" ", "");
|
|
|
|
var eu_date, year;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (date == '') {
|
|
|
|
if ( ! date ) {
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (date.indexOf('.') > 0) {
|
|
|
|
var year;
|
|
|
|
/*date a, format dd.mn.(yyyy) ; (year is optional)*/
|
|
|
|
var eu_date = date.split(/[\.\-\/]/);
|
|
|
|
eu_date = date.split('.');
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
/*date a, format dd/mn/(yyyy) ; (year is optional)*/
|
|
|
|
|
|
|
|
eu_date = date.split('/');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*year (optional)*/
|
|
|
|
/*year (optional)*/
|
|
|
|
if ( eu_date[2] ) {
|
|
|
|
if ( eu_date[2] ) {
|
|
|
|
year = eu_date[2];
|
|
|
|
year = eu_date[2];
|
|
|
|
} else {
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
year = 0;
|
|
|
|
year = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|