From 5defb12430572dfeed2f925553dcd8582c3af434 Mon Sep 17 00:00:00 2001 From: Naomi Date: Fri, 11 Oct 2013 11:53:53 -0400 Subject: [PATCH] CC-5398 : "Add Show" does not update calender "orange" progress bar immediately showing content is added until refresh page or different view. --- airtime_mvc/public/js/airtime/schedule/schedule.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/public/js/airtime/schedule/schedule.js b/airtime_mvc/public/js/airtime/schedule/schedule.js index 69f3b900d..f28e405eb 100644 --- a/airtime_mvc/public/js/airtime/schedule/schedule.js +++ b/airtime_mvc/public/js/airtime/schedule/schedule.js @@ -13,8 +13,13 @@ var AIRTIME = (function(AIRTIME){ var serverTimezoneOffset = 0; function closeDialogCalendar(event, ui) { - //$("#schedule_calendar").fullCalendar( 'refetchEvents' ); - $(this).remove(); + + $el = $(this); + $el.dialog('destroy'); + $el.remove(); + + //need to refetch the events to update scheduled status. + $("#schedule_calendar").fullCalendar( 'refetchEvents' ); } function checkShowLength(json) {