Update v1.0.6
This commit is contained in:
18
public/filemanager/scripts/zeroclipboard/copy.js
vendored
Normal file
18
public/filemanager/scripts/zeroclipboard/copy.js
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
$(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"] );
|
||||
} );
|
||||
} );
|
||||
|
||||
});
|
Reference in New Issue
Block a user