forked from External/greenlight
Duration is just shown as a number for now
This commit is contained in:
parent
98802234a7
commit
f4a7c35e35
|
@ -140,14 +140,7 @@ class @Recordings
|
||||||
if !@owner
|
if !@owner
|
||||||
table_api.column(-1).visible(false)
|
table_api.column(-1).visible(false)
|
||||||
for recording in data.recordings
|
for recording in data.recordings
|
||||||
hours = Math.floor(recording.length/60)
|
recording.duration = recording.length
|
||||||
minutes = recording.length % 60
|
|
||||||
recording.duration = if minutes>=60
|
|
||||||
hours+"hours and "+minutes+" minutes"
|
|
||||||
else if minutes>1
|
|
||||||
minutes+" minutes"
|
|
||||||
else
|
|
||||||
"< 1 minute"
|
|
||||||
data.recordings.sort (a,b) ->
|
data.recordings.sort (a,b) ->
|
||||||
return new Date(b.start_time) - new Date(a.start_time)
|
return new Date(b.start_time) - new Date(a.start_time)
|
||||||
table_api.clear()
|
table_api.clear()
|
||||||
|
|
Loading…
Reference in New Issue