Merge remote-tracking branch 'airsonic/pr/907'
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -68,13 +68,10 @@ function updateJavaJukeboxPlayerControlBar(song){
|
||||
}
|
||||
|
||||
function songTimeAsString(timeInSeconds) {
|
||||
var m = moment.duration(timeInSeconds, 'seconds');
|
||||
var seconds = m.seconds();
|
||||
var secondsAsString = seconds;
|
||||
if (seconds < 10) {
|
||||
secondsAsString = "0" + seconds;
|
||||
}
|
||||
return m.minutes() + ":" + secondsAsString;
|
||||
var minutes = Math.floor(timeInSeconds / 60);
|
||||
var seconds = timeInSeconds - minutes * 60;
|
||||
|
||||
return minutes + ":" + ("00" + seconds).slice(-2);
|
||||
}
|
||||
|
||||
function newSongPlaying(song) {
|
||||
|
||||
Reference in New Issue
Block a user