diff --git a/marietje/marietje/static/js/queue.js b/marietje/marietje/static/js/queue.js index a4d5099..c8c3153 100644 --- a/marietje/marietje/static/js/queue.js +++ b/marietje/marietje/static/js/queue.js @@ -73,11 +73,13 @@ $(function () { getSongs(); }); - $('#volume-down').click(function(){ + $('#volume-down').click(function(e){ + e.preventDefault(); $.post('/api/volumedown', {csrfmiddlewaretoken: csrf_token}); }); - $('#volume-up').click(function(){ + $('#volume-up').click(function(e){ + e.preventDefault(); $.post('/api/volumeup', {csrfmiddlewaretoken: csrf_token}); });