From dab9cc775ce523c0523e6b88338f15d3442d71dd Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Tue, 31 Mar 2015 15:39:06 -0400 Subject: [PATCH] Hide the show form after updating a show because it was broken at that point anyways --- airtime_mvc/public/js/airtime/schedule/add-show.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/public/js/airtime/schedule/add-show.js b/airtime_mvc/public/js/airtime/schedule/add-show.js index a8c9f76e7..df862e971 100644 --- a/airtime_mvc/public/js/airtime/schedule/add-show.js +++ b/airtime_mvc/public/js/airtime/schedule/add-show.js @@ -82,7 +82,7 @@ function closeAddShowForm(event) { redrawAddShowForm($el, json.form); }); - + makeAddShowButton(); } @@ -742,7 +742,7 @@ function setAddShowEvents(form) { image = new FormData(); image.append('file', $('#add_show_logo')[0].files[0]); } - + $.ajax({ url: action, data: {format: "json", data: data, hosts: hosts, days: days}, @@ -784,6 +784,7 @@ function setAddShowEvents(form) { } else { redrawAddShowForm($addShowForm, json.newForm); scheduleRefetchEvents(json); + $addShowForm.hide(); } } });