Files
faveo/public/filemanager/scripts/zeroclipboard/copy.js
Bhanu Slathia c710c20b9e Update v1.0.6
2016-02-16 23:22:09 +05:30

18 lines
561 B
JavaScript
Vendored

$(document).ready(function() {
ZeroClipboard.config( { swfPath: './scripts/zeroclipboard/dist/ZeroClipboard.swf' } );
var client = new ZeroClipboard( document.getElementById("copy-button") );
client.on( "ready", function( readyEvent ) {
// alert( "ZeroClipboard SWF is ready!" );
client.on( "aftercopy", function( event ) {
// `this` === `client`
// `event.target` === the element that was clicked
// event.target.style.display = "none";
//alert("Copied text to clipboard: " + event.data["text/plain"] );
} );
} );
});