recurring box only on create

Hello,

I would like to show recurring block in lightbox only on creating new event, not updating.

Is it possible ?

Thanks

Hello,
yes, you can switch lightbox configuration each time it’s opened. Here is the code

[code]scheduler.attachEvent(“onBeforeLightbox”, function(){
var sections;
if(!scheduler.getState().new_event){//editing
sections = [
{name: “description”, height: 200, map_to: “text”, type: “textarea”, focus: true},
{name: “time”, height: 72, type: “time”, map_to: “auto”}
];
}else{//creating
sections = [
{name:“description”, height:130, map_to:“text”, type:“textarea” , focus:true},
{name:“recurring”, type:“recurring”, map_to:“rec_type”, button:“recurring”},
{name:“time”, height:72, type:“time”, map_to:“auto”}
];
}

scheduler.config.lightbox.sections = sections;
scheduler.resetLightbox();
return true;

});[/code]