Hi all !
Here is my problem, I have a scheduler with this init function :
function init() {
var step = 60;
var format = scheduler.date.date_to_str("%H:%i");
scheduler.config.xml_date="%Y-%m-%d %H:%i";
scheduler.config.first_hour = 8;
scheduler.config.last_hour = 19;
[b] scheduler.config.event_duration = 30;
scheduler.config.time_step = 30;[/b]
scheduler.config.auto_end_date = true;
scheduler.config.day_date = "%D %j %F";
scheduler.config.hour_size_px=(60/step)*88;
scheduler.templates.hour_scale = function(date){
html="";
for (var i=0; i<60/step; i++){
html+="<div style='height:88px;line-height:17px;'>"+format(date)+"</div>";
date = scheduler.date.add(date,step,"minute");
}
return html;
}
[b] scheduler.blockTime({
days: "fullweek", // marks each Friday
zones: [12*60,14*60], // marks the entire day
type: "dhx_time_block",
css: "gray_section" // the applied css style
});[/b]
scheduler.config.multi_day = false;
scheduler.config.details_on_create=true;
scheduler.config.details_on_dblclick=true;
scheduler.config.start_on_monday = true;
scheduler.config.collision_limit = 1;
scheduler.init('scheduler_here',new Date(2013,5,30),"week");
}
and when i want to create an event by dragging it, it doesn’t work when I start dragging from 11:30; it can’t create an event from 11:30 to 12:00, wich is normally allowed here.
Where is the problem ?