equal
deleted
inserted
replaced
1 /** |
1 /** |
2 * https://github.com/sedovsek/DataTables-EU-date-Plug-In |
2 * https://github.com/sedovsek/DataTables-EU-date-Plug-In |
3 * commit 4069413 |
3 * commit 4069413 |
|
4 * (+ strip html tags surrounding dates) |
4 * |
5 * |
5 * Copyright 2011 https://github.com/sedovsek |
6 * Copyright 2011 https://github.com/sedovsek |
6 * |
7 * |
7 * DataTables-EU-date-Plug-In is a plug-in for sorting EU Date (european date |
8 * DataTables-EU-date-Plug-In is a plug-in for sorting EU Date (european date |
8 * format), (d)d.mm(.yyyy) or (d)d/mm(/yyyy) |
9 * format), (d)d.mm(.yyyy) or (d)d/mm(/yyyy) |
25 * </script> |
26 * </script> |
26 * |
27 * |
27 */ |
28 */ |
28 |
29 |
29 function calculate_date(date) { |
30 function calculate_date(date) { |
30 var date = date.replace(" ", ""); |
31 var date = date.replace(/<.*?>/g, "").replace(" ", ""); |
31 |
32 |
32 if (date.indexOf('.') > 0) { |
33 if (date.indexOf('.') > 0) { |
33 /*date a, format dd.mn.(yyyy) ; (year is optional)*/ |
34 /*date a, format dd.mn.(yyyy) ; (year is optional)*/ |
34 var eu_date = date.split('.'); |
35 var eu_date = date.split('.'); |
35 } else { |
36 } else { |