This commit is contained in:
sanj 2010-12-30 21:15:42 +05:30
parent 56ede627bd
commit adb8f930e0

View File

@ -15,9 +15,11 @@ $(function() {
function setupPadmaLink(videoObj, data) { function setupPadmaLink(videoObj, data) {
var $a = $(data.jq); var $a = $(data.jq);
// $a.data("isDisplayed", false); // $a.data("isDisplayed", false);
if (data.linkData.type in ['info', 'editor', 'tcRange']) {} else { return false; } if (!$.inArray(data.linkData.type, ["info", "editor", "tcRange"])) {
return false;
}
if (data.linkData.type in ['info', 'editor']) { if (data.linkData.type == 'info' || data.linkData.type == 'editor') {
data.linkData.tcIn = ms2npt(0); data.linkData.tcIn = ms2npt(0);
data.linkData.tcOut = ms2npt(videoObj.video.duration); data.linkData.tcOut = ms2npt(videoObj.video.duration);
} }