Merge branch 'marietje-zuid' into 'marietje-zuid'

queue/request: include length in request list

See merge request dsprenkels/MarietjeDjango!1
This commit is contained in:
Daan Sprenkels
2018-11-23 15:31:41 +01:00
2 changed files with 2 additions and 1 deletions

View File

@ -267,7 +267,7 @@ function getSongs()
$.each(songs, function (id, song) { $.each(songs, function (id, song) {
var artist = song.artist.trim() === '' ? '?' : song.artist; var artist = song.artist.trim() === '' ? '?' : song.artist;
var title = song.title.trim() === '' ? '?' : song.title; 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'); var pageNumSelect = $('.pagenum');
pageNumSelect.empty(); pageNumSelect.empty();

View File

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