From ed01dfad0aea2a057c2d381509211b07a6de79ed Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 31 Jul 2019 11:21:36 -0600 Subject: [PATCH] Fix partial HTML broke label in context menu Copy "..." action --- api/js/egw_action/egw_action_popup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/js/egw_action/egw_action_popup.js b/api/js/egw_action/egw_action_popup.js index f5d082a41d..713d20119a 100644 --- a/api/js/egw_action/egw_action_popup.js +++ b/api/js/egw_action/egw_action_popup.js @@ -65,7 +65,7 @@ function egwPopupAction(_id, _handler, _caption, _icon, _onExecute, _allowOnMult /** * Set either a confirmation prompt, or TRUE to indicate that this action * cares about large selections and to ask the confirmation prompt(s) - * + * * @param {String|Boolean} _value */ action.set_confirm_mass_selection = function(_value) { @@ -743,7 +743,7 @@ function egwPopupActionImplementation() },true); clipboard_action.group = 2.5; } - var os_clipboard_caption = this._context.event.originalEvent.target.innerHTML.trim(); + var 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) {