1
0
mirror of https://github.com/SuperBFG7/ympd synced 2025-10-24 18:37:40 +00:00

Display total songs in queue header

This commit is contained in:
jcorporation
2018-04-30 15:11:53 +01:00
parent 71868bf89d
commit 801159bfe8
2 changed files with 5 additions and 1 deletions

View File

@@ -302,7 +302,7 @@ function webSocketConnect() {
var minutes = Math.floor(obj.totalTime / 60) - hours * 60;
var seconds = obj.totalTime - hours * 3600 - minutes * 60;
$('#panel-heading-info').text('Total: ' +
$('#panel-heading-info').text(obj.totalSongs+' Songs ' +
(hours > 0 ? hours + '\u2009h ' + (minutes < 10 ? '0' : '') : '') +
minutes + '\u2009m ' + (seconds < 10 ? '0' : '') + seconds + '\u2009s');
} else {