mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 12:51:52 +02:00
Fix copy action does not work in IE, if the element is not clicked before triggering copy action from context menu
This commit is contained in:
parent
67b48d11c3
commit
c8c4980d3e
@ -730,6 +730,12 @@ function egwPopupActionImplementation()
|
|||||||
|
|
||||||
var successful = false;
|
var successful = false;
|
||||||
try {
|
try {
|
||||||
|
// detect we are in IE via checking setActive, since it's
|
||||||
|
// only supported in IE, and make sure there's clipboardData object
|
||||||
|
if (typeof event.target.setActive !='undefined' && window.clipboardData)
|
||||||
|
{
|
||||||
|
window.clipboardData.setData('Text', $j(clipboard_action.data.target).text().trim());
|
||||||
|
}
|
||||||
if(event.clipboardData)
|
if(event.clipboardData)
|
||||||
{
|
{
|
||||||
event.clipboardData.setData('text/plain', $j(clipboard_action.data.target).text().trim());
|
event.clipboardData.setData('text/plain', $j(clipboard_action.data.target).text().trim());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user