My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 164: Update event and rerender updates
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Dec 2009


Sign in to add a comment
 
Reported by enrico.b...@gmail.com, Nov 4, 2009
What steps will reproduce the problem?
1. I click on an Event and manage the eventClick method to change event
properties (start, end, title) thought a dialog
2. Click ok on the dialog to update my events (calling the updateEvent method)

What is the expected output? What do you see instead?
The update of the event should be visibleo  on the calendar. No updates are
visible on the calendar. 

What version of the product are you using? On what operating system?
jquery 1.3.2 and fullcalendar 1.4.1 on windows XP (both firefox and
explorer tested)

Please provide any additional information below.
It seems the updateEvent method has problem with the _start and _end event
properties (that should be set in the normalize function). Currently I
solved the problem changing the code in the updateEvent method with the
following line to compute 'startDelta' end 'endDelta' variables:

.........

if (e._id == event.id && e != event) {
startDelta = event.start - e.start;
endDelta = event.end ?
(event.end - (e.end || view.defaultEventEnd(event)))  
: 0; 
  
.....
Nov 26, 2009
Project Member #1 adamrs...@gmail.com
hi enrico,
i think you are getting this problem b/c you are not passing a fullcalendar-generated
CalEvent to the updateEvent function, rather, I bet you are constructing an object
from scratch.

if you are editing an event from an click, save the calEvent object from the
eventClick handler and use that.

does this help?
Dec 20, 2009
Project Member #2 adamrs...@gmail.com
please respond to this message if you need any more help. closing the issue. thanks
Status: Done
Jan 7, 2010
#3 enrico.b...@gmail.com
HI Adam,

thank you for your reply.
I solve the issue.

BR,
Enrico
Apr 28, 2010
#4 708895...@qq.com
hellow ,I'm from chiness,my english is not good! 
why can't it effect
eventClick: function(calEvent, jsEvent, view) {  
                                 $('#calendar').fullCalendar('updateEvent',[{id:926, 
title: 'test',start:'2010-04-28 09:30:00',end:'2010-04-
10:30:00',allDay:false,className:'event1'}]);
}            
Sign in to add a comment

Powered by Google Project Hosting