From 56c61d4ab70286b6d96068659973ce6168bfc9f1 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Thu, 24 Jan 2013 14:09:14 -0500 Subject: [PATCH] CC-4873: Airtime takes 7 seconds to load 32K (very small) from db -minor cleanup of function init --- .../public/js/airtime/schedule/full-calendar-functions.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 2590bf29d..810ce0d88 100644 --- a/airtime_mvc/public/js/airtime/schedule/full-calendar-functions.js +++ b/airtime_mvc/public/js/airtime/schedule/full-calendar-functions.js @@ -326,7 +326,7 @@ function eventResize( event, dayDelta, minuteDelta, revertFunc, jsEvent, ui, vie }); } -function preload () { +function preloadEventFeed () { var url = baseUrl+'Schedule/event-feed-preload'; var d = new Date(); @@ -335,7 +335,6 @@ function preload () { createFullCalendar({calendarInit: calendarPref}); }); } -preload(); var initialLoad = true; function getFullCalendarEvents(start, end, callback) { @@ -355,8 +354,6 @@ function getFullCalendarEvents(start, end, callback) { callback(json.events); }); } - //TODO: Look at the type of calendar view...we may be returning too much information - } function checkSCUploadStatus(){ @@ -559,6 +556,7 @@ function alertShowErrorAndReload(){ window.location.reload(); } +preloadEventFeed(); $(document).ready(function(){ setInterval( "checkSCUploadStatus()", 5000 ); setInterval( "getCurrentShow()", 5000 );