Fix podcast pagination highlighting on radio page
This commit is contained in:
parent
d78b2ba619
commit
03e90cdd3f
|
@ -261,8 +261,15 @@
|
||||||
$("ul.pagination li").click(function() {
|
$("ul.pagination li").click(function() {
|
||||||
buildJplayerPlaylist($(this).attr("data-page-index"), episodes);
|
buildJplayerPlaylist($(this).attr("data-page-index"), episodes);
|
||||||
$(this).siblings().removeClass('current');
|
$(this).siblings().removeClass('current');
|
||||||
$(this).addClass('current');
|
if ($(this).text() === "<") {
|
||||||
})
|
$(this).next().addClass("current");
|
||||||
|
} else if ($(this).text() ===">") {
|
||||||
|
$(this).prev().addClass("current");
|
||||||
|
} else {
|
||||||
|
$(this).addClass('current');
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
//turn off player bar when podcast track is played
|
//turn off player bar when podcast track is played
|
||||||
$("a.jp-playlist-item, .jp-play").click(function() {
|
$("a.jp-playlist-item, .jp-play").click(function() {
|
||||||
|
|
Loading…
Reference in New Issue