My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 716: Asynchronous refetchEvents() breaks event resizing
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Nov 2010


Sign in to add a comment
 
Reported by jimmy.mi...@gmail.com, Nov 16, 2010
If refetechEvents() is triggered during an event resizing the resize does not take place.

I have an agenda auto-updating via refetchEvents() and if I trigger an event resize drag and refetechEvents() is called before completion the resize is ignored and the event duration snaps back in place.
Nov 21, 2010
Project Member #1 adamrs...@gmail.com
refetchEvents will get the events from your server and display them, so if you haven't told your server about the resize changes, and you call refetchEvents, the effects of the resize will be overridden.
Status: Done
Nov 22, 2010
#2 jimmy.mi...@gmail.com
Is there any way to check if a resize is taking place client-side? It'd be nice if in my refresh function I could check if there was a current resize action, then I could skip the refresh.
Dec 18, 2010
Project Member #3 adamrs...@gmail.com
i assumed you were calling refetchEvents from your own code from the eventResize trigger (http://arshaw.com/fullcalendar/docs/event_ui/eventResize/). isn't everything happening from within your own code?
Dec 18, 2010
#4 jimmy.mi...@gmail.com
No, the problem is that I have a function called via setTimeout() every 30 seconds that refetches events. So if someone is in the middle of a drag when it does a refetch the drag is nullified once they drop it. Does that make sense?

Anyway, I think I solved it. I can just make a lock when eventDragStart() is called to tell the refresh not to run and unlock it on eventDragStop().

This should probably just be filed under working as intended.
Dec 26, 2010
Project Member #5 adamrs...@gmail.com
ok, glad you got it to work. the locking you are doing is definitely the way to go.
Sign in to add a comment

Powered by Google Project Hosting