Fixing deletion of events from calendar theme

This commit is contained in:
Benjamin Southall 2017-09-11 07:29:05 +09:00
parent b0db28237b
commit b4a28e9fa9
2 changed files with 8 additions and 3 deletions

View file

@ -130,7 +130,7 @@
}
$.ajax({
url: 'calendarpost.php',
data: 'type=update&title='+ event.title+'&description='+ event.description + '&start='+ start +'&end='+ end +'&id='+ event.id ,
data: 'type=update&title='+ event.title+'&description='+ event.description + '&start='+ start +'&end='+ end +'&id='+ event.id +'&color=' + event.color +'&url=' + event.url ,
type: "POST",
success: function(json) {
alert("Updated Successfully");
@ -148,6 +148,7 @@
$('#calendar').fullCalendar('removeEvents', event.id);
alert("Updated Successfully");}
});
return false;
}
},
@ -172,7 +173,7 @@
}
$.ajax({
url: 'calendarpost.php',
data: 'type=update&title='+ event.title+ '&description='+ event.description + '&start='+ start +'&end='+ end +'&id='+ event.id ,
data: 'type=update&title='+ event.title+'&description='+ event.description + '&start='+ start +'&end='+ end +'&id='+ event.id +'&color=' + event.color +'&url=' + event.url ,
type: "POST",
success: function(json) {
alert("Updated Successfully");