mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Calendar - planner view context menu Add action now uses date you clicked on
This commit is contained in:
parent
6fab7bfc91
commit
8ea2c6a913
@ -1452,6 +1452,17 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
|
||||
context = egw.dataGetUIDdata(_events[0].id).data;
|
||||
extra = {};
|
||||
}
|
||||
else if (_events[0].iface.getWidget() && _events[0].iface.getWidget()._get_time_from_position &&
|
||||
_action.menu_context && _action.menu_context.event
|
||||
)
|
||||
{
|
||||
// Context menu has position information
|
||||
var date = _events[0].iface.getWidget()._get_time_from_position(_action.menu_context.event.offsetX, _action.menu_context.event.offsetY);
|
||||
if(date)
|
||||
{
|
||||
context.start = date.toJSON();
|
||||
}
|
||||
}
|
||||
else if (_events[0].iface.getWidget() && _events[0].iface.getWidget().instanceOf(et2_valueWidget))
|
||||
{
|
||||
// Able to extract something from the widget
|
||||
|
Loading…
Reference in New Issue
Block a user