i have trouble to drag and drop an item (its not an event, its an employee name) on an event.
I want to drag an employee (see picture) on an event, but the 'employee' is no event. I am using jquery UI draggable/droppable.
<script>
var calendar;
$(document).ready(function() {
calendar = $('#calendar').fullCalendar({
droppable: true,
dropAccept: '.employeeItem',
drop: function(date, allDay, jsEvent, ui) {
}
});
});
$(function() {
$(".employeeItem").draggable();
$(".fc-event").droppable({
drop: function(event, ui) {
}
});
});
</script>
<?php for($i=1;$i<=30;$i++){?>
<div>Simpson, Homer<br>
10 / 14 h
</div>
<?php }?>
<div id='calendar'></div>
After dropping an employee on an event, i need the corresponding event data (event-id etc) to save the process to the db. But jquery fullcalendars "drop (callback)" only provides the date that the item was dropped on.
from jquery fullcalendar drop non event on event
No comments:
Post a Comment