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