From 3000f543d82e6a9b30e488f2562388aeb6c0ef45 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Thu, 11 Apr 2013 15:04:16 -0400 Subject: [PATCH] SAAS-301: Calendar content indicator did not update automatically after adding content to a show -fixed --- airtime_mvc/public/js/airtime/showbuilder/builder.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/public/js/airtime/showbuilder/builder.js b/airtime_mvc/public/js/airtime/showbuilder/builder.js index b7d4bda7f..e3e5524eb 100644 --- a/airtime_mvc/public/js/airtime/showbuilder/builder.js +++ b/airtime_mvc/public/js/airtime/showbuilder/builder.js @@ -42,7 +42,9 @@ var AIRTIME = (function(AIRTIME){ mod.updateCalendarStatusIcon = function(json) { - if (window.location.pathname.toLowerCase() != baseUrl+"schedule") { + //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) { return; }