oops - display track correctly, and not 'undefined'

This commit is contained in:
Sanj 2011-03-12 17:19:52 +05:30
parent 4be1607f06
commit 6d34d2195c

View File

@ -174,10 +174,10 @@ function setupPadmaLink(videoObj, data) {
var thisTrack = tracks[t]; var thisTrack = tracks[t];
var thisTrackLayers = filterLayersByTracks(currentLayers, [thisTrack]); var thisTrackLayers = filterLayersByTracks(currentLayers, [thisTrack]);
if (thisTrackLayers.length > 0) { if (thisTrackLayers.length > 0) {
annotHtml += thisTrack + "s<br />"; annotHtml += '<span class="padmaTrack">' + thisTrack + "s:</span><br />";
} }
for (var i=0; i < thisTrackLayers.length; i++) { for (var i=0; i < thisTrackLayers.length; i++) {
var thisTrack = '<span class="padmaTrack">' + thisTrackLayers[i] + ':</span>'; var thisTrack = thisTrackLayers[i];
var thisHtml = ''; var thisHtml = '';
thisHtml += " <span class='padmaAnnotation'>" + thisTrack.value_html + "</span>"; thisHtml += " <span class='padmaAnnotation'>" + thisTrack.value_html + "</span>";
thisHtml += "<br />"; thisHtml += "<br />";