From 43b2db86157d5cd097ed4c581189d1707d0b6887 Mon Sep 17 00:00:00 2001 From: spennythug Date: Tue, 28 Jul 2015 16:04:11 -0500 Subject: [PATCH] Making it so videos with and without captions can be mixed. Also fixed a bug with the removing of previous transcript on language change. --- www/templates/html/MediaPlayer.tpl.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/templates/html/MediaPlayer.tpl.php b/www/templates/html/MediaPlayer.tpl.php index 4ea1c2b3a..f5adbcee5 100644 --- a/www/templates/html/MediaPlayer.tpl.php +++ b/www/templates/html/MediaPlayer.tpl.php @@ -53,7 +53,7 @@ var $video = $(v); var mediahub_id = $video.attr('data-mediahub-id'); - + if(t.captionsButton){ t.container.append($(".mh_transcript_template").html()); $transcript = t.container.find('.mh-transcript'); $captionSearch = t.container.children(".mh-caption-search"); @@ -141,7 +141,7 @@ .prepend($('').text('[' + displaytime(track.entries.times[i].start*1000) + '] ')) )); }; - $transcript.children("a").remove(); + $transcript.children("li").remove(); $transcript.append(listItems); }; @@ -162,7 +162,7 @@ setTranscript(t.selectedTrack); }; }; - + }; // Playcount var w = false, u = 'getURL($context->media) ?>';