mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 18:33:39 +01:00
Calendar - planner view context menu Add action now uses date you clicked on
This commit is contained in:
parent
f41d9a8e1c
commit
bd364250fc
@ -1452,6 +1452,17 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
|
|||||||
context = egw.dataGetUIDdata(_events[0].id).data;
|
context = egw.dataGetUIDdata(_events[0].id).data;
|
||||||
extra = {};
|
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))
|
else if (_events[0].iface.getWidget() && _events[0].iface.getWidget().instanceOf(et2_valueWidget))
|
||||||
{
|
{
|
||||||
// Able to extract something from the widget
|
// Able to extract something from the widget
|
||||||
|
Loading…
Reference in New Issue
Block a user