Bug with details_on_create

Hi all,
I found something that I think is a bug.

Using 01_basic_init.html as sample, I add some lines:

	function init() {
		scheduler.config.multi_day = true;
		scheduler.config.xml_date="%Y-%m-%d %H:%i";
		scheduler.init('scheduler_here',null,"week");
		scheduler.config.details_on_create = true;
		scheduler.attachEvent("onEventChanged", function(event_id,event_object){
			console.info('onEventChanged');
		});
		scheduler.attachEvent("onBeforeDrag", function(event_id, mode, native_event_object){
			console.info('onBeforeDrag');
			return 1;
		});
		scheduler.showLightbox = function(id){
			// HERE I DISPLAY MY DIV
		};
	}

The event onEventChanged isn’t called.
If I comment the line

scheduler.config.details_on_create = true;

All works.

It’s normal?
I miss something?

When new event added , or existing edited through details form, onEventAdded and onEventChanged handlers will be called only after details-form closing.

If you have replaced native form with custom one - events will not be called (!), to restore native functionality you need to call
scheduler._edit_stop_event();
when closing your custom details form. ( this call will trigger related events )

Thanks for the incredibly rapid reply… :smiley:

It works.
To be complete, i call the function passing this params :

scheduler._edit_stop_event(ev,false);

where ev is the event just added.