From 12221844e0211454b8a518a06e211d6dc24fd031 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Tue, 4 Jun 2013 14:52:26 -0400 Subject: [PATCH] CC-5206: Calender: "Empty show" icon doesn't change after filling contents unless manually refresh page fixed --- airtime_mvc/public/js/airtime/showbuilder/builder.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/airtime_mvc/public/js/airtime/showbuilder/builder.js b/airtime_mvc/public/js/airtime/showbuilder/builder.js index af5a3a80d..f3871321d 100644 --- a/airtime_mvc/public/js/airtime/showbuilder/builder.js +++ b/airtime_mvc/public/js/airtime/showbuilder/builder.js @@ -40,8 +40,6 @@ var AIRTIME = (function(AIRTIME){ }; mod.updateCalendarStatusIcon = function(json) { - - //make sure we are only executing this code on the calendar view, not //the Now Playing view. if (window.location.pathname.toLowerCase().indexOf("schedule") < 0) { @@ -52,7 +50,7 @@ var AIRTIME = (function(AIRTIME){ var instance_id = json.schedule[0].instance; var lastElem = json.schedule[json.schedule.length-1]; - var $elem = $($(".fc-event-inner.fc-event-skin .fc-event-title#"+instance_id).parent()); + var $elem = $("#fc-show-instance-"+instance_id); $elem.find(".small-icon").remove(); if (json.schedule[1].empty) { $elem