From 951eeb0bbe9440f991ecedffc2bacd6d549644da Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Tue, 28 May 2013 11:07:45 -0400 Subject: [PATCH] CC-5178: Dashboard: Error happens after creating a show -fixed --- airtime_mvc/public/js/airtime/dashboard/dashboard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/public/js/airtime/dashboard/dashboard.js b/airtime_mvc/public/js/airtime/dashboard/dashboard.js index 33bb89d46..0d9f0ae5b 100644 --- a/airtime_mvc/public/js/airtime/dashboard/dashboard.js +++ b/airtime_mvc/public/js/airtime/dashboard/dashboard.js @@ -262,14 +262,14 @@ function parseItems(obj){ if (obj.currentShow.length > 0) { calcAdditionalShowData(obj.currentShow); + currentShow = obj.currentShow; } if (obj.nextShow.length > 0) { calcAdditionalShowData(obj.nextShow); + nextShow = obj.nextShow; calculateTimeToNextShow(); } - currentShow = obj.currentShow; - nextShow = obj.nextShow; var schedulePosixTime = convertDateToPosixTime(obj.schedulerTime); var date = new Date();