hack-fix, ultimately, please fix utils.js parseUrl function

This commit is contained in:
sanj 2010-12-30 21:30:04 +05:30
parent a134d32a10
commit 0e1819b630

View File

@ -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);