mirror of
https://github.com/SuperBFG7/ympd
synced 2024-12-25 18:40:26 +00:00
Playing song in queue view
This commit is contained in:
parent
29a0992555
commit
80fa5972af
@ -492,7 +492,16 @@ function webSocketConnect() {
|
|||||||
(elapsed_seconds < 10 ? '0' : '') + elapsed_seconds + " / " +
|
(elapsed_seconds < 10 ? '0' : '') + elapsed_seconds + " / " +
|
||||||
total_minutes + ":" + (total_seconds < 10 ? '0' : '') + total_seconds);
|
total_minutes + ":" + (total_seconds < 10 ? '0' : '') + total_seconds);
|
||||||
|
|
||||||
|
if (last_state) {
|
||||||
|
$('#queueList > tbody > tr[trackid='+last_state.data.currentsongid+'] > td').eq(4).text(last_state.data.totalTime);
|
||||||
|
$('#queueList > tbody > tr[trackid='+last_state.data.currentsongid+'] > td').eq(0).removeClass('material-icons').text(last_state.data.songpos);
|
||||||
|
}
|
||||||
$('#queueList > tbody > tr').removeClass('active').css("font-weight", "");
|
$('#queueList > tbody > tr').removeClass('active').css("font-weight", "");
|
||||||
|
|
||||||
|
$('#queueList > tbody > tr[trackid='+obj.data.currentsongid+'] > td').eq(4).text(elapsed_minutes + ":" +
|
||||||
|
(elapsed_seconds < 10 ? '0' : '') + elapsed_seconds + " / " +
|
||||||
|
total_minutes + ":" + (total_seconds < 10 ? '0' : '') + total_seconds);
|
||||||
|
$('#queueList > tbody > tr[trackid='+obj.data.currentsongid+'] > td').eq(0).addClass('material-icons').text('play_arrow');
|
||||||
$('#queueList > tbody > tr[trackid='+obj.data.currentsongid+']').addClass('active').css("font-weight", "bold");
|
$('#queueList > tbody > tr[trackid='+obj.data.currentsongid+']').addClass('active').css("font-weight", "bold");
|
||||||
|
|
||||||
if(obj.data.random)
|
if(obj.data.random)
|
||||||
|
Loading…
Reference in New Issue
Block a user