Commit 1707ed2c authored by onny's avatar onny

fix toggle player button icon play / pause

parent c812e5b0
......@@ -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();
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment