From 03e90cdd3f0076e1f21851fe53a4ad7b786153b6 Mon Sep 17 00:00:00 2001 From: drigato Date: Mon, 16 Nov 2015 11:44:06 -0500 Subject: [PATCH] Fix podcast pagination highlighting on radio page --- .../application/views/scripts/index/index.phtml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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() {