From 27cc94c1a933f0244639ec60cfe44e811a60fa4c Mon Sep 17 00:00:00 2001 From: sanj Date: Thu, 30 Dec 2010 21:57:28 +0530 Subject: [PATCH] remove console.log, make minuser a var --- padmaTexts/static/js/views/sidebar.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/padmaTexts/static/js/views/sidebar.js b/padmaTexts/static/js/views/sidebar.js index ffd8ea5..88f2c7b 100644 --- a/padmaTexts/static/js/views/sidebar.js +++ b/padmaTexts/static/js/views/sidebar.js @@ -5,7 +5,8 @@ $(function() { padmaContainer.data("currentVideo", false); function resize() { var docWidth = $(document).width(); - var essayWidth = docWidth - 650; + var minuser = $('#leftBar').length > 0 ? 650 : 400; + var essayWidth = docWidth - minuser; $('#essayWrapper').css("width", essayWidth); } resize(); @@ -20,11 +21,10 @@ function setupPadmaLink(videoObj, data) { if (!$.inArray(data.linkData.type, ["info", "editor", "tc", "tcRange"])) { return false; } - console.log(data.linkData); +// console.log(data.linkData); 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); - data.linkData.type = "tcRange"; }