|
|
@ -97,13 +97,9 @@
|
|
|
|
$.fn.dataTable.render.moment = function ( from, to, locale ) {
|
|
|
|
$.fn.dataTable.render.moment = function ( from, to, locale ) {
|
|
|
|
// Argument shifting
|
|
|
|
// Argument shifting
|
|
|
|
if ( arguments.length === 1 ) {
|
|
|
|
if ( arguments.length === 1 ) {
|
|
|
|
locale = 'en';
|
|
|
|
|
|
|
|
to = from;
|
|
|
|
to = from;
|
|
|
|
from = 'YYYY-MM-DD';
|
|
|
|
from = 'YYYY-MM-DD';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if ( arguments.length === 2 ) {
|
|
|
|
|
|
|
|
locale = 'en';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return function ( d, type, row ) {
|
|
|
|
return function ( d, type, row ) {
|
|
|
|
if (! d) {
|
|
|
|
if (! d) {
|
|
|
|