diff --git a/airtime_mvc/application/views/scripts/index/index.phtml b/airtime_mvc/application/views/scripts/index/index.phtml index 23da7f001..bc649d4a3 100644 --- a/airtime_mvc/application/views/scripts/index/index.phtml +++ b/airtime_mvc/application/views/scripts/index/index.phtml @@ -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() {