diff --git a/js/main.js b/js/main.js index dab94e0..7c4de13 100644 --- a/js/main.js +++ b/js/main.js @@ -56,7 +56,7 @@ $(function(){ }; }); -/* Save station to favorites */ + /* Save station to favorites */ $('body').on('click', '.favorite', function() { var stationid = $(this).parent().parent().attr('data-id'); action_favorite(stationid); @@ -90,7 +90,10 @@ $(function(){ var music = document.getElementById('player'); if (music.paused && $("#player").attr("src") != "") { music.play(); + } else { + $('#playbutton').removeClass("pause"); + $('#playbutton').addClass("play"); music.pause(); } });