forked from extern/egroupware
Fix copy to OS clipboard in Firefox.
This commit is contained in:
parent
cc58d6e6e7
commit
14655677ca
@ -342,8 +342,8 @@ function egwPopupActionImplementation()
|
|||||||
menu.instance.dhtmlxmenu.attachEvent("onShow", function(zoneId,ev) {
|
menu.instance.dhtmlxmenu.attachEvent("onShow", function(zoneId,ev) {
|
||||||
var client = new ZeroClipboard($j('#'+this.idPrefix+'egw_os_clipboard', this.base));
|
var client = new ZeroClipboard($j('#'+this.idPrefix+'egw_os_clipboard', this.base));
|
||||||
client.on("copy",function(event) {
|
client.on("copy",function(event) {
|
||||||
event.clipboardData.setData('text/plain', _links.egw_os_clipboard.actionObj.data.target.innerText);
|
event.clipboardData.setData('text/plain', $j(_links.egw_os_clipboard.actionObj.data.target).text().trim());
|
||||||
event.clipboardData.setData('text/html', _links.egw_os_clipboard.actionObj.data.target.innerHTML);
|
event.clipboardData.setData('text/html', $j(_links.egw_os_clipboard.actionObj.data.target).html());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user