From 56ede627bd86f788d6b124914b34ed64a6cb81ae Mon Sep 17 00:00:00 2001 From: sanj Date: Thu, 30 Dec 2010 21:05:52 +0530 Subject: [PATCH] js --- padmaTexts/static/js/views/sidebar.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/padmaTexts/static/js/views/sidebar.js b/padmaTexts/static/js/views/sidebar.js index 091de04..f6f472b 100644 --- a/padmaTexts/static/js/views/sidebar.js +++ b/padmaTexts/static/js/views/sidebar.js @@ -15,11 +15,13 @@ $(function() { function setupPadmaLink(videoObj, data) { var $a = $(data.jq); // $a.data("isDisplayed", false); - var linkData = data.linkData; - if (linkData.type in ['info', 'editor']) { - linkData.tcIn = ms2npt(0); - linkData.tcOut = ms2npt(videoObj.video.duration); + if (data.linkData.type in ['info', 'editor', 'tcRange']) {} else { return false; } + + if (data.linkData.type in ['info', 'editor']) { + data.linkData.tcIn = ms2npt(0); + data.linkData.tcOut = ms2npt(videoObj.video.duration); } + var linkData = data.linkData; //FIXME: put this as a variable, option somewhere? var $container = padmaContainer; videoObj.currentLayers = [];