Oslomp/stats bugfixes

This commit is contained in:
Olaf Slomp
2019-02-28 10:45:01 +01:00
committed by Gerdriaan Mulder
parent 409c5b2930
commit 3f263ae429
4 changed files with 27 additions and 22 deletions

View File

@ -56,7 +56,6 @@ $(function () {
return false
}
$.post('/api/report', {id: songId, msg: message, csrfmiddlewaretoken: csrf_token}, function (result) {
console.log(result);
if (result.success) {
createAlert('success', 'Thanks for your song report!');
}
@ -209,6 +208,7 @@ function renderQueue(playNextAt, now)
} else {
var requestNext = !((queue[id+1].requested_by === 'Marietje') && (requestedBy !== 'Marietje'))
}
//checks if id is the first item and returns false if the previous song is not Marietje, while the current song is.
if(id === 0){
var requestPrev = false