Hide the show form after updating a show because it was broken at that point anyways
This commit is contained in:
parent
79d2ae12fb
commit
dab9cc775c
|
@ -82,7 +82,7 @@ function closeAddShowForm(event) {
|
||||||
|
|
||||||
redrawAddShowForm($el, json.form);
|
redrawAddShowForm($el, json.form);
|
||||||
});
|
});
|
||||||
|
|
||||||
makeAddShowButton();
|
makeAddShowButton();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -742,7 +742,7 @@ function setAddShowEvents(form) {
|
||||||
image = new FormData();
|
image = new FormData();
|
||||||
image.append('file', $('#add_show_logo')[0].files[0]);
|
image.append('file', $('#add_show_logo')[0].files[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: action,
|
url: action,
|
||||||
data: {format: "json", data: data, hosts: hosts, days: days},
|
data: {format: "json", data: data, hosts: hosts, days: days},
|
||||||
|
@ -784,6 +784,7 @@ function setAddShowEvents(form) {
|
||||||
} else {
|
} else {
|
||||||
redrawAddShowForm($addShowForm, json.newForm);
|
redrawAddShowForm($addShowForm, json.newForm);
|
||||||
scheduleRefetchEvents(json);
|
scheduleRefetchEvents(json);
|
||||||
|
$addShowForm.hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue