CC-4751: Calendar: Add/Remove contents won't trig status update of shows

-fix problem when baseurl changed
This commit is contained in:
Martin Konecny 2013-01-14 14:07:32 -05:00
parent 97eeafb142
commit 3a70a371be

View file

@ -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];