mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Use queryCommandSupported not queryCommandEnabled to check for copy support
This commit is contained in:
parent
adcb2f1aa8
commit
61890f19bc
@ -256,17 +256,14 @@ RED.clipboard = (function() {
|
|||||||
});
|
});
|
||||||
dialog.dialog("option","title",RED._("clipboard.exportNodes")).dialog( "open" );
|
dialog.dialog("option","title",RED._("clipboard.exportNodes")).dialog( "open" );
|
||||||
|
|
||||||
setTimeout(function() {
|
|
||||||
$("#clipboard-export").focus();
|
$("#clipboard-export").focus();
|
||||||
if (!document.queryCommandEnabled("copy")) {
|
if (!document.queryCommandSupported("copy")) {
|
||||||
$("#clipboard-dialog-cancel").hide();
|
$("#clipboard-dialog-cancel").hide();
|
||||||
$("#clipboard-dialog-close").show();
|
$("#clipboard-dialog-close").show();
|
||||||
} else {
|
} else {
|
||||||
$("#clipboard-dialog-cancel").show();
|
$("#clipboard-dialog-cancel").show();
|
||||||
$("#clipboard-dialog-copy").show();
|
$("#clipboard-dialog-copy").show();
|
||||||
}
|
}
|
||||||
|
|
||||||
},0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function hideDropTarget() {
|
function hideDropTarget() {
|
||||||
|
Loading…
Reference in New Issue
Block a user