From 11af81133cb8c72097f5556c3fe3f77ab5c0d317 Mon Sep 17 00:00:00 2001 From: james Date: Mon, 27 Jun 2011 17:32:54 -0400 Subject: [PATCH] CC-2431:Clendar shrinking issue -fixed --- airtime_mvc/public/js/airtime/schedule/add-show.js | 5 +---- .../public/js/airtime/schedule/full-calendar-functions.js | 4 +--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/airtime_mvc/public/js/airtime/schedule/add-show.js b/airtime_mvc/public/js/airtime/schedule/add-show.js index 68aea26b5..3fd259f8b 100644 --- a/airtime_mvc/public/js/airtime/schedule/add-show.js +++ b/airtime_mvc/public/js/airtime/schedule/add-show.js @@ -248,10 +248,7 @@ function setAddShowEvents() { event.stopPropagation(); event.preventDefault(); - var y = $("#schedule_calendar").width(); - var z = $("#schedule-add-show").width(); - - $("#schedule_calendar").width(y+z+50) + $("#schedule_calendar").removeAttr("style") .fullCalendar('render'); $("#add-show-form").hide(); diff --git a/airtime_mvc/public/js/airtime/schedule/full-calendar-functions.js b/airtime_mvc/public/js/airtime/schedule/full-calendar-functions.js index cdcad012c..f2bb5f345 100644 --- a/airtime_mvc/public/js/airtime/schedule/full-calendar-functions.js +++ b/airtime_mvc/public/js/airtime/schedule/full-calendar-functions.js @@ -13,9 +13,7 @@ function openAddShowForm() { if($("#add-show-form").length == 1) { if( ($("#add-show-form").css('display')=='none')) { $("#add-show-form").show(); - var y = $("#schedule_calendar").width(); - var z = $("#schedule-add-show").width(); - $("#schedule_calendar").width(y-z-50); + $("#schedule_calendar").css("width", "70%"); $("#schedule_calendar").fullCalendar('render'); } $("#schedule-show-what").show(0, function(){