mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-09 21:52:21 +01:00
Prevent scrolling to top for volume control.
This commit is contained in:
@ -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});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user