Add mute button.

This commit is contained in:
Jim Driessen
2017-09-05 14:02:27 +02:00
parent aadeb44b43
commit 984a068880
4 changed files with 20 additions and 1 deletions

View File

@ -97,6 +97,11 @@ $(function () {
$.post('/api/volumeup', {csrfmiddlewaretoken: csrf_token});
});
$('#mute').click(function(e){
e.preventDefault();
$.post('/api/mute', {csrfmiddlewaretoken: csrf_token});
});
$(document).on('touchstart', '.artist, .title', function(){
noRemove = true;
setTimeout(function(){ noRemove = false; }, 500);