diff --git a/airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml b/airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml index 3d46ca8c9..af562738a 100644 --- a/airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml +++ b/airtime_mvc/application/views/scripts/form/add-show-rebroadcast-absolute.phtml @@ -18,21 +18,21 @@ Remove - - element->getElement('add_show_rebroadcast_date_absolute_'.$i)->hasErrors()) + element->getElement('add_show_rebroadcast_date_absolute_'.$i)->hasErrors()) || ($this->element->getElement('add_show_rebroadcast_time_absolute_'.$i)->hasErrors())) : ?> - + + diff --git a/airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml b/airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml index 870be276c..41a4fce79 100644 --- a/airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml +++ b/airtime_mvc/application/views/scripts/form/add-show-rebroadcast.phtml @@ -18,22 +18,22 @@ Remove + element->getElement('add_show_rebroadcast_date_'.$i)->hasErrors()) + || ($this->element->getElement('add_show_rebroadcast_time_'.$i)->hasErrors())) : ?> + + - element->getElement('add_show_rebroadcast_date_'.$i)->hasErrors()) - || ($this->element->getElement('add_show_rebroadcast_time_'.$i)->hasErrors())) : ?> - - diff --git a/airtime_mvc/public/js/airtime/schedule/add-show.js b/airtime_mvc/public/js/airtime/schedule/add-show.js index 2bc224686..b662ae64c 100644 --- a/airtime_mvc/public/js/airtime/schedule/add-show.js +++ b/airtime_mvc/public/js/airtime/schedule/add-show.js @@ -160,7 +160,7 @@ function setAddShowEvents() { }); form.find(".add_absolute_rebroadcast_day").click(function(){ - var li = $(this).prev().find("li:visible:last").next(); + var li = $(this).parent().find("ul.formrow-repeat > li:visible:last").next(); li.show(); li = li.next();