mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Matching durations along both suggested and regular
This commit is contained in:
4
public/dist/embed.min.js
vendored
4
public/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
4
public/dist/main.min.js
vendored
4
public/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -847,8 +847,9 @@ 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(".card-duration").remove();
|
||||||
song.find(".vote-text").text(_song_info.duration);
|
song.find(".vote-text").text("");
|
||||||
|
song.find(".card-duration").text(_song_info.duration);
|
||||||
|
|
||||||
attr = ".add-suggested";
|
attr = ".add-suggested";
|
||||||
if(user)
|
if(user)
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ var Suggestions = {
|
|||||||
var minutes = Math.floor(secs / 60);
|
var minutes = Math.floor(secs / 60);
|
||||||
var seconds = secs - minutes * 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);
|
var song = List.generateSong({id: video_id, title: video_title, length: secs, duration: duration}, false, false, false, true);
|
||||||
$("#user-suggest-html").append(song);
|
$("#user-suggest-html").append(song);
|
||||||
|
|||||||
Reference in New Issue
Block a user