modify date sort to handle failed #405
This commit is contained in:
@@ -11,8 +11,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$('thead th.date').data('sortBy', function(th, td, tablesort) {
|
$('thead th.date').data('sortBy', function(th, td, tablesort) {
|
||||||
var tdTime = td.text().replace("-", "");
|
var tdTime = new Date(td.text().replace("-", ""));
|
||||||
return moment.utc(new Date(tdTime)).unix();
|
if(isNaN(tdTime)) return 0;
|
||||||
|
else return tdTime;
|
||||||
});
|
});
|
||||||
|
|
||||||
$('input.filter-table').parent('div').removeClass('hide');
|
$('input.filter-table').parent('div').removeClass('hide');
|
||||||
|
|||||||
Reference in New Issue
Block a user