mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
Fix partial HTML broke label in context menu Copy "..." action
This commit is contained in:
parent
c580dcb64f
commit
ed01dfad0a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user