forked from extern/egroupware
Show success message after copying to clipboard
This commit is contained in:
parent
b14a472814
commit
a847f25408
@ -791,7 +791,7 @@ export function egwPopupActionImplementation()
|
||||
if (successful)
|
||||
{
|
||||
// Clear message
|
||||
egw.message('');
|
||||
egw.message(egw.lang("'%1' copied to clipboard", os_clipboard_caption.length > 20 ? os_clipboard_caption.substring(0, 20) + '...' : os_clipboard_caption));
|
||||
window.getSelection().removeAllRanges();
|
||||
return false;
|
||||
}
|
||||
@ -970,10 +970,11 @@ function fallbackCopyTextToClipboard(event, clipboard_action, text)
|
||||
event.clipboardData.setData('text/plain', jQuery(clipboard_action.data.target).text().trim());
|
||||
event.clipboardData.setData('text/html', jQuery(clipboard_action.data.target).html());
|
||||
}
|
||||
let textArea;
|
||||
if (!window.clipboardData)
|
||||
{
|
||||
|
||||
const textArea = document.createElement("textarea");
|
||||
textArea = document.createElement("textarea");
|
||||
textArea.value = text;
|
||||
|
||||
// Avoid scrolling to bottom
|
||||
|
@ -26,6 +26,7 @@
|
||||
%s notranslation common en %s NoTranslation
|
||||
%s onchange common en %s onChange
|
||||
%s readonly common en %s readonly
|
||||
'%1' copied to clipboard common en '%1' copied to clipboard
|
||||
'%1' has an invalid format common en '%1' has an invalid format
|
||||
'%1' has an invalid format !!! common en '%1' has an invalid format!
|
||||
'%1' is no php file in the egw server root (%2)! common en '%1' is no php file in the eGW server root (%2)!
|
||||
|
Loading…
Reference in New Issue
Block a user