forked from leftypol/leftypol
Fixing deletion of events from calendar theme
This commit is contained in:
parent
b0db28237b
commit
b4a28e9fa9
2 changed files with 8 additions and 3 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue