From 3a70a371be0482fcfd6435bd8007d2c30329bb48 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Mon, 14 Jan 2013 14:07:32 -0500 Subject: [PATCH] CC-4751: Calendar: Add/Remove contents won't trig status update of shows -fix problem when baseurl changed --- 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 9526cd9f3..1f0c3e243 100644 --- a/airtime_mvc/public/js/airtime/showbuilder/builder.js +++ b/airtime_mvc/public/js/airtime/showbuilder/builder.js @@ -41,10 +41,12 @@ var AIRTIME = (function(AIRTIME){ mod.updateCalendarStatusIcon = function(json) { - if (window.location.pathname.toLowerCase() != "/schedule") { + + if (window.location.pathname.toLowerCase() != baseUrl+"/schedule") { return; } + var instance_id = json.schedule[0].instance; var lastElem = json.schedule[json.schedule.length-1];