Prevent scrolling to top for volume control.

This commit is contained in:
Jim Driessen
2017-01-30 16:55:45 +01:00
parent a5c2331bcf
commit 87ed3301e8

View File

@ -73,11 +73,13 @@ $(function () {
getSongs(); getSongs();
}); });
$('#volume-down').click(function(){ $('#volume-down').click(function(e){
e.preventDefault();
$.post('/api/volumedown', {csrfmiddlewaretoken: csrf_token}); $.post('/api/volumedown', {csrfmiddlewaretoken: csrf_token});
}); });
$('#volume-up').click(function(){ $('#volume-up').click(function(e){
e.preventDefault();
$.post('/api/volumeup', {csrfmiddlewaretoken: csrf_token}); $.post('/api/volumeup', {csrfmiddlewaretoken: csrf_token});
}); });