Fix partial HTML broke label in context menu Copy "..." action

This commit is contained in:
nathangray 2019-07-31 11:21:36 -06:00
parent c580dcb64f
commit ed01dfad0a

View File

@ -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) {