Fix bug breaking date/time sort
This commit is contained in:
@@ -11,7 +11,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$('thead th.date').data('sortBy', function(th, td, tablesort) {
|
$('thead th.date').data('sortBy', function(th, td, tablesort) {
|
||||||
return moment.utc(td.text()).unix();
|
var tdTime = td.text().replace("-", "");
|
||||||
|
return moment.utc(tdTime).unix();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('input.filter-table').parent('div').removeClass('hide');
|
$('input.filter-table').parent('div').removeClass('hide');
|
||||||
|
|||||||
@@ -87,7 +87,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th class="five wide">Status</th>
|
<th class="five wide">Status</th>
|
||||||
<th class="five wide">Certname</th>
|
<th class="five wide">Certname</th>
|
||||||
<th class="five wide default-sort">Report</th>
|
<th class="date five wide default-sort">Report</th>
|
||||||
<th class="one wide"></th>
|
<th class="one wide"></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>Status</th>
|
<th>Status</th>
|
||||||
<th class="default">Certname</th>
|
<th class="default">Certname</th>
|
||||||
<th class="default-sort">Catalog</th>
|
<th class="date default-sort">Catalog</th>
|
||||||
<th>Report</th>
|
<th class="date">Report</th>
|
||||||
<th> </th>
|
<th> </th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|||||||
Reference in New Issue
Block a user