From 0e1819b630f8f70d749a6da3ededa68b0841d03f Mon Sep 17 00:00:00 2001 From: sanj Date: Thu, 30 Dec 2010 21:30:04 +0530 Subject: [PATCH] hack-fix, ultimately, please fix utils.js parseUrl function --- padmaTexts/static/js/views/sidebar.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/padmaTexts/static/js/views/sidebar.js b/padmaTexts/static/js/views/sidebar.js index 5edd93c..6676e59 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); - if (!$.inArray(data.linkData.type, ["info", "editor", "tcRange"])) { + + //FIXME: tc is WRONG!!! + if (!$.inArray(data.linkData.type, ["info", "editor", "tc", "tcRange"])) { return false; } console.log(data.linkData); - if (data.linkData.type == 'info' || data.linkData.type == 'editor') { + if (data.linkData.type == 'info' || data.linkData.type == 'editor' || data.linkData.type == "tc") { data.linkData.tcIn = ms2npt(0); data.linkData.tcOut = ms2npt(videoObj.video.duration);