Hi,
I have an attribute “gmt_time” added to the event on load. This value is displayed in one of the lightbox sections of the event. However my problem is when creating a new event and I try to assign the correct value to this attribute after a successful insert i get this error:
Cannot read property 'gmt_time' of undefined
Here’s the code:
[code]dp.defineAction(“updated”, successful_update);
dp.defineAction(“inserted”, successful_update);
function successful_update(node){
var events = scheduler.getEvents();
event = scheduler.getEvent(node.getAttribute("tid"));
event.gmt_time = node.getAttribute("gmt_time");
scheduler.updateEvent(node.getAttribute("tid"));
return true;
}[/code]