Fix podcast pagination highlighting on radio page

This commit is contained in:
drigato 2015-11-16 11:44:06 -05:00
parent d78b2ba619
commit 03e90cdd3f
1 changed files with 9 additions and 2 deletions

View File

@ -261,8 +261,15 @@
$("ul.pagination li").click(function() {
buildJplayerPlaylist($(this).attr("data-page-index"), episodes);
$(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
$("a.jp-playlist-item, .jp-play").click(function() {