CC-3444: Ability to edit currently playing show (end time and permissions)
- handling in better way. we created separate action for this.
This commit is contained in:
parent
68c908eeac
commit
954fa2bceb
12 changed files with 73 additions and 20 deletions
|
@ -321,7 +321,7 @@ function setAddShowEvents() {
|
|||
applyPlatformOpacityRules: false
|
||||
});
|
||||
|
||||
var action = "/Schedule/"+addShowButton.attr("data-type");
|
||||
var action = "/Schedule/"+addShowButton.attr("data-action");
|
||||
|
||||
$.post(action, {format: "json", data: data, hosts: hosts, days: days}, function(json){
|
||||
//addShowButton.removeClass("disabled");
|
||||
|
@ -336,6 +336,19 @@ function setAddShowEvents() {
|
|||
$("#add_show_end_date").val(end_date);
|
||||
$("#add_show_start_date").val(start_date);
|
||||
showErrorSections();
|
||||
}else if(json.edit){
|
||||
$("#schedule_calendar").removeAttr("style")
|
||||
.fullCalendar('render');
|
||||
|
||||
$("#add-show-form").hide();
|
||||
$.get("/Schedule/get-form", {format:"json"}, function(json){
|
||||
$("#add-show-form")
|
||||
.empty()
|
||||
.append(json.form);
|
||||
|
||||
setAddShowEvents();
|
||||
});
|
||||
makeAddShowButton();
|
||||
}
|
||||
else {
|
||||
$("#add-show-form")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue