mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-15 09:12:21 +01:00
Oslomp/stats bugfixes
This commit is contained in:
committed by
Gerdriaan Mulder
parent
409c5b2930
commit
3f263ae429
@ -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
|
||||
|
||||
Reference in New Issue
Block a user