Matching durations along both suggested and regular

This commit is contained in:
Kasper Rynning-Tønnesen
2017-02-16 12:16:28 +01:00
parent efcd71cb02
commit 96070e2591
4 changed files with 8 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ var Suggestions = {
var minutes = Math.floor(secs / 60);
var seconds = secs - minutes * 60;
duration = minutes+"m " + seconds + "s";
duration = Helper.pad(minutes) + ":" + Helper.pad(seconds);
var song = List.generateSong({id: video_id, title: video_title, length: secs, duration: duration}, false, false, false, true);
$("#user-suggest-html").append(song);