diff --git a/airtime_mvc/application/controllers/ScheduleController.php b/airtime_mvc/application/controllers/ScheduleController.php index efa9ac654..d8d0f1f42 100644 --- a/airtime_mvc/application/controllers/ScheduleController.php +++ b/airtime_mvc/application/controllers/ScheduleController.php @@ -50,12 +50,10 @@ class ScheduleController extends Zend_Controller_Action $baseUrl = Application_Common_OsPath::getBaseDir(); - $foo = new ScheduleController($this->getRequest(), $this->getResponse()); - $foo->eventFeedPreloadAction(); - //$foo->eventFeedAction(); - $events = json_encode($foo->view->events); - //$timescale = - //$this->getRequest()->getParam("view", "week"); + //Embed the schedule in our page response so we don't have to make an AJAX request to get this data after the page load. + $scheduleController = new ScheduleController($this->getRequest(), $this->getResponse()); + $scheduleController->eventFeedPreloadAction(); + $events = json_encode($scheduleController->view->events); $this->view->headScript()->appendScript( "var calendarPref = {};\n". @@ -307,9 +305,9 @@ class ScheduleController extends Zend_Controller_Action public static function printCurrentPlaylistForEmbedding() { $front = Zend_Controller_Front::getInstance(); - $foo = new ScheduleController($front->getRequest(), $front->getResponse()); - $foo->getCurrentPlaylistAction(); - echo(json_encode($foo->view)); + $scheduleController = new ScheduleController($front->getRequest(), $front->getResponse()); + $scheduleController->getCurrentPlaylistAction(); + echo(json_encode($scheduleController->view)); } public function getCurrentPlaylistAction() diff --git a/airtime_mvc/application/controllers/ShowbuilderController.php b/airtime_mvc/application/controllers/ShowbuilderController.php index 324e39b61..712bc0348 100644 --- a/airtime_mvc/application/controllers/ShowbuilderController.php +++ b/airtime_mvc/application/controllers/ShowbuilderController.php @@ -67,8 +67,8 @@ class ShowbuilderController extends Zend_Controller_Action if (isset($values["Privacy"])) { Application_Model_Preference::SetPrivacyPolicyCheck($values["Privacy"]); } - // unset referrer session_start(); //open session for writing again + // unset referrer Zend_Session::namespaceUnset('referrer'); } elseif ($values["Publicise"] == '1' && $form->isValid($values)) { Application_Model_Preference::SetHeadTitle($values["stnName"], $this->view); @@ -89,8 +89,8 @@ class ShowbuilderController extends Zend_Controller_Action if (isset($values["Privacy"])) { Application_Model_Preference::SetPrivacyPolicyCheck($values["Privacy"]); } - // unset session session_start(); //open session for writing again + // unset referrer Zend_Session::namespaceUnset('referrer'); } else { $logo = Application_Model_Preference::GetStationLogo(); diff --git a/airtime_mvc/application/controllers/SystemstatusController.php b/airtime_mvc/application/controllers/SystemstatusController.php index dfc2d019b..543fbef70 100644 --- a/airtime_mvc/application/controllers/SystemstatusController.php +++ b/airtime_mvc/application/controllers/SystemstatusController.php @@ -13,16 +13,18 @@ class SystemstatusController extends Zend_Controller_Action public function indexAction() { + /* $services = array( "pypo"=>Application_Model_Systemstatus::GetPypoStatus(), "liquidsoap"=>Application_Model_Systemstatus::GetLiquidsoapStatus(), //"media-monitor"=>Application_Model_Systemstatus::GetMediaMonitorStatus(), ); + */ $partitions = Application_Model_Systemstatus::GetDiskInfo(); $this->view->status = new StdClass; - $this->view->status->services = $services; + //$this->view->status->services = $services; $this->view->status->partitions = $partitions; } } diff --git a/airtime_mvc/application/views/scripts/systemstatus/index.phtml b/airtime_mvc/application/views/scripts/systemstatus/index.phtml index 2a31ac78e..de8dea94a 100644 --- a/airtime_mvc/application/views/scripts/systemstatus/index.phtml +++ b/airtime_mvc/application/views/scripts/systemstatus/index.phtml @@ -1,31 +1,6 @@ - - - - - - - - - + - - - status->services as $key=>$value): ?> - " id=""> - - - - - - - diff --git a/airtime_mvc/public/js/airtime/dashboard/dashboard.js b/airtime_mvc/public/js/airtime/dashboard/dashboard.js index f18c2cf57..2f3cc0ae5 100644 --- a/airtime_mvc/public/js/airtime/dashboard/dashboard.js +++ b/airtime_mvc/public/js/airtime/dashboard/dashboard.js @@ -455,7 +455,6 @@ var stream_window = null; function init() { //begin producer "thread" - //getScheduleFromServer(); setInterval(getScheduleFromServer, serverUpdateInterval); //begin consumer "thread" diff --git a/airtime_mvc/public/js/airtime/library/library.js b/airtime_mvc/public/js/airtime/library/library.js index 3e755c63e..ae223171a 100644 --- a/airtime_mvc/public/js/airtime/library/library.js +++ b/airtime_mvc/public/js/airtime/library/library.js @@ -892,7 +892,6 @@ var AIRTIME = (function(AIRTIME) { } }); - //checkImportStatus(); checkLibrarySCUploadStatus(); addQtipToSCIcons(); 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 8bf9bf38a..0a3ae1b3b 100644 --- a/airtime_mvc/public/js/airtime/schedule/full-calendar-functions.js +++ b/airtime_mvc/public/js/airtime/schedule/full-calendar-functions.js @@ -361,15 +361,6 @@ function windowResize() { function preloadEventFeed () { createFullCalendar({calendarInit: calendarPref}); - -/* - var url = baseUrl+'Schedule/event-feed-preload'; - var d = new Date(); - $.post(url, {format: "json", cachep: d.getTime()}, function(json){ - calendarEvents = json.events; - createFullCalendar({calendarInit: calendarPref}); - }); - */ } var initialLoad = true;