issue with addmarkedTimespan ?

Hi all !

I found something strange : In my project I have to block the lunch break from 12 to 14 for every day of the week. But if I add a markedTimespan on another hour in any day, it erases the launch break blocked timespan of this day.

Here is the code (sample 01_basic_init.html with the issue on january 14) :

<!doctype html>

Basic initialization html, body{ margin:0px; padding:0px; height:100%; overflow:hidden; }
 
 

Any way to fix this ? Does my code have a problem ?

Thanks in advance :slight_smile:

Hi!
Your code doesn’t have any problem, this is an expected behavior of marked timespans.
You can find additional information about blocking priority in our DOCs:
docs.dhtmlx.com/scheduler/limits … ngpriority
Dates specified through Date() objects for certain items have the highest priority and overwrite “fullweek” timespans.

In your case you can add manually another timespan (zones: [1260,1460]) to the mentioned date (days: new Date(2010,0,14)) to restore “fullweek” lunch time break for this day.

Best regards,
Serge Melnikov
DHTMLX Support Team

Oh did not see that article ! Thanks :slight_smile: