| Issue 836: | SlotMinutes of 5 doesn't work properly with selecting. | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Code:
//***************************************************************************************************************
// Order Calendar
//***************************************************************************************************************
$calendarPanel = $("#calendar-panel");
$orderCalendar = $("#order-calendar");
if($orderCalendar.exists()) {
$orderCalendar.fullCalendar({
theme : true,
weekMode : 'liquid',
aspectRatio : 0.9,
header : {
left: 'title ',
center: 'today ',
right: 'month,agendaWeek,agendaDay prev,next'
},
selectable: true,
selectHelper: true,
slotMinutes: 5,
defaultEventMinutes: 5,
/* Events */
// Clicked on day
dayClick: function(date, allDay, jsEvent, view) {
if (allDay) {
alert('Clicked on the entire day: ' + date);
} else{
alert('Clicked on the slot: ' + date);
}
},
// Selected a Time
select: function( startDate, endDate, allDay, jsEvent, view ) {
alert(startDate);
}
});
/* Show Calendar on Tab Open */
$calendarPanel.bind("panelShown", function() {
$orderCalendar.fullCalendar('render');
});
}
When I click and drag, it starts creating the event at whatever the 30 minute increment is in that hour not at the 5 minute slot I originally began with.
Mar 24, 2011
Project Member
#1
adamrs...@gmail.com
Status:
Reproducing
May 8, 2011
(No comment was entered for this change.)
Status:
Done
|
|
| ► Sign in to add a comment |