mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Only process first drop event if an event is dropped onto multiple conflicting events. Fixes multiple schedule conflict popups.
This commit is contained in:
parent
3dc87c4574
commit
35eab31c7e
@ -882,23 +882,11 @@ var et2_calendar_timegrid = et2_valueWidget.extend([et2_IDetachedDOM, et2_IResiz
|
||||
if(!source[i].id) continue;
|
||||
if(source[i].manager === target.manager)
|
||||
{
|
||||
// Check for hidden helper
|
||||
var dropEnd = $j('.calendar_d-n-d_timeCounter',action.ui.helper);
|
||||
if(dropEnd.length && dropEnd[0].dropEnd)
|
||||
if (self._drop_data)
|
||||
{
|
||||
dropEnd = dropEnd[0].dropEnd[0].dataset || {};
|
||||
self._event_drop.call(source[i].iface.getDOMNode(),self,null, action.ui,self._drop_data);
|
||||
}
|
||||
else if (self._drop_data)
|
||||
{
|
||||
dropEnd = self._drop_data;
|
||||
}
|
||||
else
|
||||
{
|
||||
self._drag_helper(source[i].iface.getDOMNode(),target.iface.getDOMNode(),$j(source[i].iface.getDOMNode()).height());
|
||||
dropEnd = undefined;
|
||||
}
|
||||
|
||||
self._event_drop.call(source[i].iface.getDOMNode(),self,null, action.ui,dropEnd);
|
||||
self._drop_data = false;
|
||||
// Ok, stop.
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user