From 7c2e92f6e5b3f8e82259896bc5fd6c74a8ad5aeb Mon Sep 17 00:00:00 2001 From: denise Date: Mon, 7 Oct 2013 17:16:52 -0400 Subject: [PATCH] CC-5293: Calendar page cannot be loaded sometimes --- airtime_mvc/application/controllers/ScheduleController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/application/controllers/ScheduleController.php b/airtime_mvc/application/controllers/ScheduleController.php index 79ed4eeba..9bf324151 100644 --- a/airtime_mvc/application/controllers/ScheduleController.php +++ b/airtime_mvc/application/controllers/ScheduleController.php @@ -62,7 +62,8 @@ class ScheduleController extends Zend_Controller_Action //full-calendar-functions.js requires this variable, so that datePicker widget can be offset to server time instead of client time $this->view->headScript()->appendScript("var timezoneOffset = ".date("Z")."; //in seconds"); - $this->view->headScript()->appendFile($baseUrl.'js/airtime/schedule/full-calendar-functions.js?'.$CC_CONFIG['airtime_version'],'text/javascript'); + //set offset to ensure it loads last + $this->view->headScript()->offsetSetFile(100, $baseUrl.'js/airtime/schedule/full-calendar-functions.js?'.$CC_CONFIG['airtime_version'],'text/javascript'); $this->view->headScript()->appendFile($baseUrl.'js/fullcalendar/fullcalendar.js?'.$CC_CONFIG['airtime_version'],'text/javascript'); $this->view->headScript()->appendFile($baseUrl.'js/timepicker/jquery.ui.timepicker.js?'.$CC_CONFIG['airtime_version'],'text/javascript');