Fixed issue with no duration shown on suggested

This commit is contained in:
Kasper Rynning-Tønnesen
2017-02-15 14:55:38 +01:00
parent b1d1b0764d
commit 131139f6af
3 changed files with 7 additions and 6 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -847,6 +847,7 @@ var List = {
var _temp_duration = Helper.secondsToOther(_song_info.duration); var _temp_duration = Helper.secondsToOther(_song_info.duration);
song.find(".card-duration").text(Helper.pad(_temp_duration[0]) + ":" + Helper.pad(_temp_duration[1])); song.find(".card-duration").text(Helper.pad(_temp_duration[0]) + ":" + Helper.pad(_temp_duration[1]));
}else if(!list){ }else if(!list){
song.find(".card-duration").remove();
song.find(".vote-text").text(_song_info.duration); song.find(".vote-text").text(_song_info.duration);
attr = ".add-suggested"; attr = ".add-suggested";