mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Include menu context in action so callback can find click location
This commit is contained in:
parent
e6dffefdd0
commit
0497818385
@ -309,6 +309,7 @@ function egwPopupActionImplementation()
|
||||
_target = null;
|
||||
}
|
||||
|
||||
ai._context = _context;
|
||||
if (typeof _context == "object" && typeof _context.keyEvent == "object")
|
||||
{
|
||||
return ai._handleKeyPress(_context.keyEvent, _selected, _links, _target);
|
||||
@ -492,6 +493,9 @@ function egwPopupActionImplementation()
|
||||
if (link.enabled && _enabled)
|
||||
{
|
||||
item.set_onClick(function(elem) {
|
||||
// Pass the context
|
||||
elem.data.menu_context = ai._context;
|
||||
|
||||
// Copy the "checked" state
|
||||
if (typeof elem.data.checked != "undefined")
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user