1
0
Fork 0

Fix gained duration again

This commit is contained in:
Gregory Eremin 2011-10-12 13:54:44 +04:00
parent c22ccab188
commit 2ef58ff231
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class window.Player
len = parseInt(audio.duration, 10)
m = Math.floor(len / 60)
s = len - Math.floor(len / 60) * 60
duration = m+':'+(s < 10 ? '0' : '')+s
duration = m + ':' + (if s < 10 then '0' else '') + s
_session.query '/track/update_length', { track_id: track.id, length: len }, (r) ->
if r.result is 'success'
$('.playlist li[data-id="'+track.id+'"] .song-duration').text(duration)