remove console.log, make minuser a var

This commit is contained in:
sanj 2010-12-30 21:57:28 +05:30
parent 40941dd078
commit 27cc94c1a9

View File

@ -5,7 +5,8 @@ $(function() {
padmaContainer.data("currentVideo", false); padmaContainer.data("currentVideo", false);
function resize() { function resize() {
var docWidth = $(document).width(); var docWidth = $(document).width();
var essayWidth = docWidth - 650; var minuser = $('#leftBar').length > 0 ? 650 : 400;
var essayWidth = docWidth - minuser;
$('#essayWrapper').css("width", essayWidth); $('#essayWrapper').css("width", essayWidth);
} }
resize(); resize();
@ -20,11 +21,10 @@ function setupPadmaLink(videoObj, data) {
if (!$.inArray(data.linkData.type, ["info", "editor", "tc", "tcRange"])) { if (!$.inArray(data.linkData.type, ["info", "editor", "tc", "tcRange"])) {
return false; return false;
} }
console.log(data.linkData); // console.log(data.linkData);
if (data.linkData.type == 'info' || data.linkData.type == 'editor' || data.linkData.type == "tc") { if (data.linkData.type == 'info' || data.linkData.type == 'editor' || data.linkData.type == "tc") {
data.linkData.tcIn = ms2npt(0); data.linkData.tcIn = ms2npt(0);
data.linkData.tcOut = ms2npt(videoObj.video.duration); data.linkData.tcOut = ms2npt(videoObj.video.duration);
data.linkData.type = "tcRange"; data.linkData.type = "tcRange";
} }