From 2f7735f669b3b1019e55a7c18b9cfc2af461a9d7 Mon Sep 17 00:00:00 2001 From: Junior Date: Sat, 1 Jun 2024 12:55:48 -0400 Subject: [PATCH] Rearrange order of operations in skipSong() to make button skinning work better, and get the new song in the subsequent listsongs call --- js/minimal.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/minimal.js b/js/minimal.js index 84757f2..2bae6f7 100755 --- a/js/minimal.js +++ b/js/minimal.js @@ -358,8 +358,10 @@ function skipSong (callingElement) { $.ajax({ url: 'ajax/ajax_skipsong.php', success: function (data, stat, jqo) { - callingElement.removeClass("buttonactive"); - setTimeout(function() { getSongList(); }, 250); + setTimeout(function() { + callingElement.removeClass("buttonactive"); + getSongList(); + }, 250); }, error: function(jqo, stat, err) { callingElement.removeClass("buttonactive");