addMarkedTimespan and double click create event

In my web I have disabled the double click create function. After I added this code

start_date: new Date(1900,1,1),
end_date: new Date(),
css: gray;

The double click create is enabled again. I tried to place this code before scheduler.config.dblclick_create = false but it still can create event. Anyone knows why?

the marked timespan blocks creating of events only if it’s defined with ‘type:“dhx_time_block”’. Also note the semicolon after ‘gray’, there might be a syntax error

I create events by single click. That’s why I disabled double click creation in the first place. What I am trying to do is adding gray background for the past. I don’t want to fully block time. Can you tell me how I can do it? Thanks.