diff --git a/airtime_mvc/application/models/ShowBuilder.php b/airtime_mvc/application/models/ShowBuilder.php index e3804e17f..46559c7f0 100644 --- a/airtime_mvc/application/models/ShowBuilder.php +++ b/airtime_mvc/application/models/ShowBuilder.php @@ -193,7 +193,7 @@ class Application_Model_ShowBuilder { private function makeFooterRow($p_item) { $row = $this->defaultRowArray; - $this->isAllowed($p_item, $row); + //$this->isAllowed($p_item, $row); $row["footer"] = true; $showEndDT = new DateTime($p_item["si_ends"], new DateTimeZone("UTC")); diff --git a/airtime_mvc/public/js/airtime/showbuilder/builder.js b/airtime_mvc/public/js/airtime/showbuilder/builder.js index 084fda9ff..577b6a418 100644 --- a/airtime_mvc/public/js/airtime/showbuilder/builder.js +++ b/airtime_mvc/public/js/airtime/showbuilder/builder.js @@ -287,6 +287,9 @@ $(document).ready(function() { if (aData.allowed !== true) { $(nRow).addClass("sb-not-allowed"); } + else { + $(nRow).addClass("sb-allowed"); + } //status used to colour tracks. if (aData.status === 1) { @@ -538,8 +541,8 @@ $(document).ready(function() { var prev = ui.item.prev(); //can't add items outside of shows. - if (prev.hasClass("sb-footer")) { - alert("Cannot add an item outside a show."); + if (!prev.hasClass("sb-allowed")) { + alert("Cannot schedule outside a show."); ui.item.remove(); return; }