summaryrefslogtreecommitdiff
path: root/templates/themes/calendar/calendar.html
diff options
context:
space:
mode:
authorBenjamin Southall <applemansigloo@gmail.com>2017-09-11 07:29:05 +0900
committerBenjamin Southall <applemansigloo@gmail.com>2017-09-11 07:29:05 +0900
commit7b9bad73825f549aeed35b53a5f81137cc357cf4 (patch)
tree592989c2ded3a8c8eabd2e298c2948b68cfba0bd /templates/themes/calendar/calendar.html
parente461bd77982b7d2de3cb72c4860a3836fc1f5e2c (diff)
Fixing deletion of events from calendar theme
Diffstat (limited to 'templates/themes/calendar/calendar.html')
-rw-r--r--templates/themes/calendar/calendar.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/themes/calendar/calendar.html b/templates/themes/calendar/calendar.html
index 47b53eae..93712c0e 100644
--- a/templates/themes/calendar/calendar.html
+++ b/templates/themes/calendar/calendar.html
@@ -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");