Remove Delete Button on Event Creation

Hi Again,

I want to hide the Delete button on the lightbox when i am going to create a new event. (The Delete button displays on the lightbox when event is in create mode). How can i achieve that? Please help.



scheduler.attachEvent("onBeforeLightbox", function(id) { scheduler.config.buttons_right = (scheduler.getState().new_event) ? [] : ["dhx_delete_btn"]; scheduler.resetLightbox(); return true; });
Kind regards,

Thank you, This worked!