| Issue 1650: | allDay drag doesn't stick (update record with new date) | |
| 1 person starred this issue and may be notified of changes. | Back to list |
I'm using Fullcalendar in a Rails application. When I drag an event that is not allDay, the record gets updated fine. If I drag an allDay event to a new date, it moves but doesn't update the event record.
This is my calendar.js.coffee file:
$(document).ready ->
$('#calendar').fullCalendar
ignoreTimezone: true,
editable: true,
header:
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
defaultView: 'agendaWeek',
height: 500,
slotMinutes: 30,
selectable: true,
selectHelper: true
select: (start, end, allDay) ->
title = $("#title")
description = $("#description")
hours = $("#hours")
workorder = $("#workorder_id")
$("#dialog-form").dialog
autoOpen: true
height: 300
width: 350
modal: true
buttons:
"Create an event": ->
$.create "/events/",
event:
workorder_id: workorder.val(),
title: title.val(),
description: description.val(),
hours: hours.val()
starts_at: "" + start,
ends_at: "" + end,
all_day: allDay,
employee_id: $('#calendar').data('employeeid')
$('#calendar').fullCalendar('refetchEvents')
$(this).dialog "close"
Cancel: ->
$(this).dialog "close"
eventSources: [{
url: '/events',
}],
timeFormat: 'h:mm t{ - h:mm t} ',
dragOpacity: "0.5"
eventDrop: (event, dayDelta, minuteDelta, allDay, revertFunc) ->
updateEvent(event);
eventResize: (event, dayDelta, minuteDelta, revertFunc) ->
updateEvent(event);
updateEvent = (the_event) ->
$.update "/events/" + the_event.id,
event:
title: the_event.title,
starts_at: "" + the_event.start,
ends_at: "" + the_event.end,
description: the_event.description
Aug 21, 2013
Project Member
#1
adamrs...@gmail.com
Status:
ReproTemp
Aug 25, 2013
This message is being bulk-sent to a number of issues, both [very] old and new.
I have been working on taming this issue tracker, which has gotten out of control after months of neglect. You are receiving this message because I could not successfully reproduce the bug you were reporting with a reasonable amount of effort. I have written some new bug-report guidelines to be used by all bug reports going forward:
http://arshaw.com/fullcalendar/wiki/Report-a-Bug/
Its salient point is that all bug reports should have an isolated demonstration, viewable online with a tool like JSFiddle.
If the bug you originally reported is still important to you, could you please first try the latest version of FullCalendar and see if it is fixed? If not, could you please file a NEW bug report that follows the new guidelines? This issue will not be monitored for further comments.
I'm sorry I have taken so long to respond to many of your request, and I'm sorry if this new procedure causes extra work for you. Going forward, the issue tracker will be much more of a well-oiled machine.
Again, if you must, PLEASE SUBMIT A *NEW* BUG REPORT (following the new guidelines) INSTEAD OF COMMENTING ON THIS ONE. Further comments on this report will be ignored. Thanks.
Status:
Invalid
Labels: Type-Bug |
|
| ► Sign in to add a comment |