mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 00:06:07 -07:00
Allow sort on duration column in history.
Minor code clean-up
This commit is contained in:
parent
f0864d3531
commit
7dbaf46408
2 changed files with 41 additions and 34 deletions
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue