From a4a76f48bccfd524091da4d3d9f57dd6943ec867 Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 14 Mar 2011 06:11:52 +0530 Subject: [PATCH] dont prefetch first annot before video --- padmaTexts/static/js/views/sidebar.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/padmaTexts/static/js/views/sidebar.js b/padmaTexts/static/js/views/sidebar.js index b08f46b..bd5bce3 100644 --- a/padmaTexts/static/js/views/sidebar.js +++ b/padmaTexts/static/js/views/sidebar.js @@ -96,15 +96,15 @@ function setupPadmaLink(videoObj, data) { //FIXME: should be a better way to deal with displaying default layer. var currentLayers = videoObj.getLayersAtTimecode(npt2ms(linkData.tcIn)); // var annotHtml = getLayersHtml(npt2ms(linkData.tcIn), ['transcript']); - var transcripts = filterLayersByTracks(currentLayers, ['transcript']); +// var transcripts = filterLayersByTracks(currentLayers, ['transcript']); - if (transcripts.length > 0) { - var annotHtml = transcripts[0].value_html; - } else { - var annotHtml = ''; - } +// if (transcripts.length > 0) { +// var annotHtml = transcripts[0].value_html; +// } else { +// var annotHtml = ''; +// } - $('.annotationText').html(annotHtml); +// $('.annotationText').html(annotHtml); var annotHeight = $(window).height() - 340; $('.annotationText').css({'height': annotHeight + "px"}); var videoElem = $('video');