| Issue 2400: | $.fullCalendar.formatDate() crashing app? | |
| 1 person starred this issue and may be notified of changes. | Back to list |
I'm trying to use the formatDate function to store an event in a SQL database, but it keeps crashing when setting "var start = $.fullCalendar.formatDate(start, "yyyy-MM-dd HH:mm:ss");" Any ideas?
Here's the full code for the part that's crashing:
select: function(start, end, allDay) {
var title = prompt('Event Title:');
//var url = prompt('Type Event url, if exits:');
if (title) {
var start = $.fullCalendar.formatDate(start, "yyyy-MM-dd HH:mm:ss");
var end = $.fullCalendar.formatDate(end, "yyyy-MM-dd HH:mm:ss");
$.ajax({
url: 'add_events.php',
data: 'title='+ title+'&start='+ start +'&end='+ end +'&url='+ url ,
type: "POST",
success: function(json) {
alert('Added Successfully');
}
});
calendar.fullCalendar('renderEvent',
{
title: title,
start: start,
end: end,
allDay: allDay
},
true // make the event "stick"
);
}
calendar.fullCalendar('unselect');
},
Jan 6, 2015
Project Member
#1
adamrs...@gmail.com
Status:
Invalid
Jan 6, 2015
found the issue, it was that I was using $.fullCalendar.formatDate( when that is no longer supported.
Jan 6, 2015
cool |
|
| ► Sign in to add a comment |