Skip to content

Commit

Permalink
fixed label of zipped srt
Browse files Browse the repository at this point in the history
  • Loading branch information
guancio committed Oct 6, 2013
1 parent e66a5ec commit eac9c85
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/js/mep-feature-tracks.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,8 @@ zip.workerScriptsPath = "/lib/";
t.captionsButton
.find('#label_srtname')[0]
.textContent = "No subtitle";
}
$('#label_srtname').css('visibility','inherit');
$('#select_srtname').css('visibility','hidden');
if (player.tracks.length > 1) {
$('#label_srtname').css('visibility','hidden');
$('#select_srtname').css('visibility','inherit');
$('#label_srtname').css('visibility','inherit');
$('#select_srtname').css('visibility','hidden');
}
});

Expand Down Expand Up @@ -339,7 +335,7 @@ zip.workerScriptsPath = "/lib/";
t.tracks[0].file = data;
t.tracks[0].isLoaded = false;

$('#label_srtname')[0].textContent = entry;
$('#label_srtname')[0].textContent = entry.filename;
t.loadTrack(0);

// close the zip reader
Expand Down

0 comments on commit eac9c85

Please sign in to comment.