remove nbsp from empty subtitle li's so it pushes up to the top

This commit is contained in:
Ernie Park
2012-01-26 16:25:53 -05:00
parent 475f30a206
commit 6464895847

View File

@@ -80,12 +80,12 @@ function change_video_speed(speed, youtube_id) {
function caption_at(index) {
if (captions==0)
return " ";
return "";
text_array=captions.text
if ((index>=text_array.length) || (index < 0))
return "&nbsp;";
return "";
return text_array[index];
}