Allow sort on duration column in history.

Minor code clean-up
This commit is contained in:
Tim 2015-06-13 22:12:21 +02:00
parent f0864d3531
commit 7dbaf46408
2 changed files with 41 additions and 34 deletions

View file

@ -36,7 +36,7 @@
<th align='left' id="started"><i class='fa fa-sort'></i> Started</th>
<th align='left' id="paused"><i class='fa fa-sort'></i> Paused</th>
<th align='left' id="stopped"><i class='fa fa-sort'></i> Stopped</th>
<th align='left' id="duration"> Duration</th>
<th align='left' id="duration"><i class='fa fa-sort'></i> Duration</th>
<th align='left' id="percent_complete"> Completed</th>
</tr>
</thead>
@ -188,7 +188,6 @@
{
"targets": [9],
"data":"duration",
"orderable": false,
"render": function ( data, type, full ) {
return Math.round(moment.duration(data, 'seconds').as('minutes')) + ' mins';
}