Remove superfluous getVolume in document.ready

This commit is contained in:
Junior 2024-06-01 12:53:16 -04:00
parent 83925c2705
commit 7ddbc11d27

View File

@ -54,7 +54,6 @@ $(document).ready(function() {
allowPageScroll: "vertical"
});
updateQueueSelects();
getVolume();
toggleMute($(this), 'show');
getSongList();
getQueueTarget();
@ -355,11 +354,12 @@ function skipSong (callingElement) {
callingElement.blur();
if ( gettingJukeboxList || gettingSongList ) return false;
callingElement.addClass("buttonactive");
console.log("Skipping song");
$.ajax({
url: 'ajax/ajax_skipsong.php',
success: function (data, stat, jqo) {
callingElement.removeClass("buttonactive");
getSongList();
setTimeout(function() { getSongList(); }, 250);
},
error: function(jqo, stat, err) {
callingElement.removeClass("buttonactive");