queue/request: include length in request list

This commit is contained in:
Gerdriaan Mulder
2018-11-23 14:45:36 +01:00
parent 78a66f7494
commit 66ca91f128
2 changed files with 2 additions and 1 deletions

View File

@ -267,7 +267,7 @@ function getSongs()
$.each(songs, function (id, song) {
var artist = song.artist.trim() === '' ? '?' : song.artist;
var title = song.title.trim() === '' ? '?' : song.title;
$('#request-table tbody:last-child').append('<tr><td>' + artist + '</td><td><a href="#" data-song-id="' + song.id + '">' + title + '</a></td><td>' + (song.uploader_name ? song.uploader_name : 'Marietje') + '</td></tr>');
$('#request-table tbody:last-child').append('<tr><td>' + artist + '</td><td><a href="#" data-song-id="' + song.id + '">' + title + '</a></td><td>' + (song.uploader_name ? song.uploader_name : 'Marietje') + '</td><td>' + song.duration.secondsToHHMMSS() + '</td></tr>');
});
var pageNumSelect = $('.pagenum');
pageNumSelect.empty();

View File

@ -14,6 +14,7 @@
<th>Artist</th>
<th>Title</th>
<th>Uploader</th>
<th>Length</th>
</tr>
<tr>
<th colspan="2"><input id="search-all" class="search-input" type="text"></th>