Stop displaying of LightBox

Hi,

I’m trying to figure out a way to completely disable and NOT SHOW the lightbox on double click on any event in the calendar month/week/day view. I am using the older version of dhtmlx scheduler (I don’t need the new features of the newer version).

I already did the following:

scheduler.config.drag_resize = false;
scheduler.config.drag_move = false;
scheduler.config.drag_create = false;

scheduler.config.dblclick_create = false;
scheduler.config.edit_on_create = false;
scheduler.config.details_on_create = false;
scheduler.config.details_on_dblclick = false;

What I’m trying to achieve here is to prevent the user from interacting with the calendar, just viewing is allowed.

Can someone please help me? This is making my manager angry…

By default lightbox isn’t shown on double click:
dhtmlx.com/docs/products/dhtmlxS … demo.shtml

To disable editing in scheduler try to use the next methods:

scheduler.attachEvent(“onBeforeDrag”,block);
scheduler.attachEvent(“onClick”,block);
scheduler.attachEvent(“onBeforeLightBox”,block);

function block(){
return false;
}

Are you assuming that I have the latest version of dhtmlx scheduler? I don’t feel like installing it because I’m afraid it will break my existing code.

It says that block is not a function

Did you define block function ?

function block(){
return false;
}

Ha! I didn’t know about that. It works now, thanks so much Alexandra!

I didn’t create the function.

On another note, would it be possible to prevent the user from editing the title of the events in the Week, Day view? Now, when I double click on the title of the event, I am able to change the title. Though this does not really write to my database, but I just don’t want the user to have any sort of interaction.

I’m using Pylons web framework with this together with an Oracle database. It’s not very compatible with this product.

Next code will block any on-dblclick reaction

scheduler.attachEvent(“onDblClick”,function(){
return false;
});