My scheduler is set up to accept new events via drag and drop from a tree. Everything is working perfectly there. When I double click the calendar to add an event manually, the lightbox will not go away when I click Save, Cancel or Delete. If I refresh the page, the event is on the calendar and the lightbox works perfectly. There are no issues with the lightbox when I drag a new event from the tree.
I’m not seeing any javascript errors with Firebug and the dhtmlxlog.txt file doesn’t seem different for one versus the other. My only attachedEvents are as follows
scheduler.attachEvent("onExternalDragIn", function(id, source, e){
var tree_item_id = tree._dragged[0].id; // getting tree item id
scheduler._dragged_tree_item = tree_item_id; // setting custom flag with tree item id when item was dragged in
var label = tree.getItemText(tree_item_id);
var ev = scheduler.getEvent(id);
ev.text = label;
var addedby = tree.getUserData(tree_item_id,'addedby');
var dispatch_id = tree.getUserData(tree_item_id,'dispatch_id');
var job = tree.getUserData(tree_item_id,'job');
var customer = tree.getUserData(tree_item_id,'customer');
var supervisor = tree.getUserData(tree_item_id,'supervisor');
var tech = tree.getUserData(tree_item_id,'tech');
var location = tree.getUserData(tree_item_id,'location');
var lat = tree.getUserData(tree_item_id,'lat');
var lng = tree.getUserData(tree_item_id,'lng');
ev.addedby=addedby;
ev.dispatch_id=dispatch_id;
ev.job=job;
ev.customer=customer;
ev.supervisor=supervisor;
ev.tech=tech;
ev.location=location;
ev.lat=lat;
ev.lng=lng;
return true;
});
scheduler.attachEvent("onEventAdded", function(event_id){
if(tree._dragged[0].id){
tree.deleteItem(tree._dragged[0].id);
}
else{
}
return true;
});
scheduler.attachEvent("onAfterLightbox", function () {
scheduler._dragged_tree_item = false; // resetting flag after lightbox was closed
});