Event Not Deleting

Hi there,

I have a problem closing my event. I am using a custom form and have used the custom form example in the samples as my base structure.

In the error console, it reads

Error: ev is undefined
Source File: /codebase/dhtmlxscheduler_debug.js
Line: 3248

this is the code segment it refers to

scheduler._edit_stop_event=function(ev,mode){ if (this._new_event){ if (!mode) this.deleteEvent(ev.id,true); else this.callEvent("onEventAdded",[ev.id,ev]); this._new_event=null; } else if (mode) this.callEvent("onEventChanged",[ev.id,ev]); };

The part in question is the if(!mode) line.

What am I doing wrong to cause a problem within the dhtmlx codebase?? What sort of things should I be looking at/thinking about?

Regards,
Dion.

When edit process started
scheduler.startLightbox(id,…
scheduler saves ID of item, which is in edit process as
scheduler._lightbox_id
and during lightbox closing, using this id to update event

In your case it seems that scheduler can’t locate event by its id
It possible that you have provide incorrect value for startLightbox method, or have changed id|deteled event after that.