diff --git a/application/views/scripts/schedule/add-show-form.phtml b/application/views/scripts/schedule/add-show-form.phtml new file mode 100644 index 000000000..1b3ca6d40 --- /dev/null +++ b/application/views/scripts/schedule/add-show-form.phtml @@ -0,0 +1,25 @@ +
diff --git a/public/js/airtime/schedule/add-show.js b/public/js/airtime/schedule/add-show.js index 0afe6f753..d0fb0e2b2 100644 --- a/public/js/airtime/schedule/add-show.js +++ b/public/js/airtime/schedule/add-show.js @@ -123,9 +123,6 @@ function setAddShowEvents() { $("#schedule_calendar").width(y+z+50); $("#schedule_calendar").fullCalendar('render'); $("#add-show-form").hide(); - - //in full-calendar-functions.js - makeAddShowButton(); }); $("#add-show-submit") diff --git a/public/js/airtime/schedule/full-calendar-functions.js b/public/js/airtime/schedule/full-calendar-functions.js index c547602a0..0033469ad 100644 --- a/public/js/airtime/schedule/full-calendar-functions.js +++ b/public/js/airtime/schedule/full-calendar-functions.js @@ -15,7 +15,10 @@ function makeAddShowButton(){ var z = $("#schedule-add-show").width(); $("#schedule_calendar").width(y-z-50); $("#schedule_calendar").fullCalendar('render'); - $(this).remove(); + + var td = $(this).parent(); + $(td).prev().remove(); + $(td).remove(); }); } @@ -68,7 +71,7 @@ function viewDisplay( view ) { } - if($("#add-show-form").length == 1 && $('.fc-header-left tbody td').length === 5) { + if(($("#add-show-form").length == 1) && ($('.fc-header-left tbody td').length == 5)) { makeAddShowButton(); } }