mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 17:14:36 +01:00
Api: Fix context menu button did not open context menu
This commit is contained in:
parent
45e477f0c0
commit
5bc74522c5
@ -755,9 +755,13 @@ function egwPopupActionImplementation()
|
||||
},true);
|
||||
clipboard_action.group = 2.5;
|
||||
}
|
||||
var os_clipboard_caption = this._context.event.originalEvent.target.innerText.trim();
|
||||
let os_clipboard_caption = "";
|
||||
if(this._context.event)
|
||||
{
|
||||
os_clipboard_caption = this._context.event.originalEvent.target.innerText.trim();
|
||||
clipboard_action.set_caption(egw.lang('Copy "%1"', os_clipboard_caption.length > 20 ? os_clipboard_caption.substring(0, 20) + '...' : os_clipboard_caption));
|
||||
clipboard_action.data.target = this._context.event.originalEvent.target;
|
||||
}
|
||||
jQuery(clipboard_action.data.target).off('copy').on('copy', function(event) {
|
||||
// Cancel any no-select css
|
||||
var target = jQuery(clipboard_action.data.target);
|
||||
|
Loading…
Reference in New Issue
Block a user