fix toggle player button icon play / pause
This commit is contained in:
parent
c812e5b0f8
commit
1707ed2c8d
@ -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();
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user