diff --git a/js/player_lib.js b/js/player_lib.js index e22c888..3b5164f 100644 --- a/js/player_lib.js +++ b/js/player_lib.js @@ -353,12 +353,12 @@ function updateGUI(json){ function refreshState(state) { if (state == 'play') { $('#play').addClass('btn-primary'); - $('#play i').removeClass('icon-pause').addClass('icon-play'); + $('#play i').addClass('icon-pause').removeClass('icon-play'); $('#stop').removeClass('btn-primary'); } else if (state == 'pause') { $('#playlist-position').html('Not playing'); $('#play').addClass('btn-primary'); - $('#play i').removeClass('icon-play').addClass('icon-pause'); + $('#play i').addClass('icon-play').removeClass('icon-pause'); $('#stop').removeClass('btn-primary'); } else if (state == 'stop') { $('#play').removeClass('btn-primary'); diff --git a/js/scripts-playback.js b/js/scripts-playback.js index 69c9465..a6fe9ad 100644 --- a/js/scripts-playback.js +++ b/js/scripts-playback.js @@ -64,20 +64,6 @@ jQuery(document).ready(function($){ 'use strict'; // BUTTONS // ---------------------------------------------------------------------------------------------------- // playback - $("#play").mouseenter(function() { - if (GUI.state == "play") { - $("#play i").removeClass("icon-play").addClass("icon-pause"); - } else if (GUI.state == "pause") { - $("#play i").removeClass("icon-pause").addClass("icon-play"); - } - }).mouseleave(function() { - if (GUI.state == "play") { - $("#play i").removeClass("icon-pause").addClass("icon-play"); - } else if (GUI.state == "pause") { - $("#play i").removeClass("icon-play").addClass("icon-pause"); - } - }); - $('.btn-cmd').click(function(){ var cmd; // stop