"Linked" Icon is missing after adding contents into linked show

-fixed
This commit is contained in:
Martin Konecny 2013-06-07 13:52:13 -04:00
parent 622a7e6ff3
commit ade1890acd
1 changed files with 5 additions and 5 deletions

View File

@ -51,15 +51,15 @@ var AIRTIME = (function(AIRTIME){
var lastElem = json.schedule[json.schedule.length-1]; var lastElem = json.schedule[json.schedule.length-1];
var $elem = $("#fc-show-instance-"+instance_id); var $elem = $("#fc-show-instance-"+instance_id);
$elem.find(".small-icon").remove(); $elem.find(".show-empty, .show-partial-filled").remove();
if (json.schedule[1].empty) { if (json.schedule[1].empty) {
$elem $elem
.find(".fc-event-title") .find(".fc-event-inner")
.after('<span id="'+instance_id+'" title="'+$.i18n._("Show is empty")+'" class="small-icon show-empty"></span>'); .append('<span id="'+instance_id+'" title="'+$.i18n._("Show is empty")+'" class="small-icon show-empty"></span>');
} else if (lastElem["fRuntime"][0] == "-") { } else if (lastElem["fRuntime"][0] == "-") {
$elem $elem
.find(".fc-event-title") .find(".fc-event-inner")
.after('<span id="'+instance_id+'" title="'+$.i18n._("Show is partially filled")+'" class="small-icon show-partial-filled"></span>'); .append('<span id="'+instance_id+'" title="'+$.i18n._("Show is partially filled")+'" class="small-icon show-partial-filled"></span>');
} }
} }