[code] scheduler.attachEvent(“onLimitViolation”, function (){
parent.msgBox(“Indicated Start or End time is beyond allowable office hours.”,“exclamation”,1.5,"");
scheduler.load(“xml/facility_booking_xml.php”);
});
scheduler.attachEvent(“onEventCollision”, function (ev, evs){
var cancelSave=false;
for (var i=0;i<evs.length;i++){
if (ev.id!=evs[i].id){
if (ev.facility==evs[i].facility) cancelSave=true;
}
}
if (cancelSave) {
parent.msgBox(“Double booking detected, please check.”,“exclamation”,1.5,"");
scheduler.startLightBox(ev.id);
}
});
[/code]
The code for both events work when using drag-drop in updating or creating data in the daily view. However, when encoding the colliding dates in the lightbox, both events are not triggered upon saving.
Please help. Thank you very much in advanced.