Unit and cookies extensions are conflicts

Hello, Team Support!

I suspect there is a bug.
Two extensions conflict with each other.
You can check it by adding cookie extension
“dhtmlxscheduler_cookie.js”
to your example:
dhtmlxScheduler_v35_std_120913\samples\03_extensions\02_units_view.html
I get error: “TypeError: from is undefined”
Result code:

<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8">
	<title></title>
</head>
		<script src="resources/dhtmlx/dhtmlxScheduler/codebase/dhtmlxscheduler.js" type="text/javascript" charset="utf-8"></script>
		<script src="resources/dhtmlx/dhtmlxScheduler/codebase/ext/dhtmlxscheduler_units.js" type="text/javascript" charset="utf-8"></script>
		<script src="resources/dhtmlx/dhtmlxScheduler/codebase/ext/dhtmlxscheduler_cookie.js" type="text/javascript" charset="utf-8"></script>
    	<link rel="stylesheet" href="resources/dhtmlx/dhtmlxScheduler/codebase/dhtmlxscheduler.css" type="text/css" charset="utf-8">

<style type="text/css" media="screen">
	html, body{
		margin:0px;
		padding:0px;
		height:100%;
		overflow:hidden;
	}	
</style>

<script type="text/javascript" charset="utf-8">
	function init() {

		var sections=[
			{key:1, label:"Section A"},
			{key:2, label:"Section B"},
			{key:3, label:"Section C"},
			{key:4, label:"Section D"}
		];
		
		scheduler.locale.labels.unit_tab = "Unit"
		scheduler.locale.labels.section_custom="Section";
		scheduler.config.details_on_create=true;
		scheduler.config.details_on_dblclick=true;
		scheduler.config.xml_date="%Y-%m-%d %H:%i";
		
		scheduler.config.lightbox.sections=[	
			{name:"description", height:130, map_to:"text", type:"textarea" , focus:true},
			{name:"custom", height:23, type:"select", options:sections, map_to:"section_id" },
			{name:"time", height:72, type:"time", map_to:"auto"}
		]
		
		scheduler.createUnitsView({
			name:"unit",
			property:"section_id",
			list:sections
		});
		scheduler.config.multi_day = true;
		
		scheduler.init('scheduler_here',new Date(2009,5,30),"unit");
		scheduler.setLoadMode("day"); // Set dynamic load per day 

		scheduler.load("./resources/dhtmlx/dhtmlxScheduler/data/units.xml");
	}
</script>

<body onload="init();">
	<div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
		<div class="dhx_cal_navline">
			<div class="dhx_cal_prev_button">&nbsp;</div>
			<div class="dhx_cal_next_button">&nbsp;</div>
			<div class="dhx_cal_today_button"></div>
			<div class="dhx_cal_date"></div>
			<div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
			<div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
			<div class="dhx_cal_tab" name="unit_tab" style="right:280px;"></div>
			<div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
		</div>
		<div class="dhx_cal_header">
		</div>
		<div class="dhx_cal_data">
		</div>		
	</div>
</body>

Thank you for consulting!

Sorry!
I forget to say, they are conflict
with dynamic load events mode:
scheduler.setLoadMode(“day”);

Hello,

Please try again using attached file.

Best regards,
Ilya
dhtmlxscheduler_cookie.zip (829 Bytes)

Hello, Ilya!

It work!
Thank you for nice support!