|
|
|
@ -670,21 +670,16 @@ function setupCopyEventHandler() {
@@ -670,21 +670,16 @@ function setupCopyEventHandler() {
|
|
|
|
|
|
|
|
|
|
clipboardEvent = new ClipboardJS('.copyToClipboard', { |
|
|
|
|
text: function(trigger) { |
|
|
|
|
var textToCopy; |
|
|
|
|
|
|
|
|
|
switch (trigger.id) { |
|
|
|
|
case "CopyName": |
|
|
|
|
textToCopy = copyNameFN(); |
|
|
|
|
break; |
|
|
|
|
return copyNameFN(); |
|
|
|
|
case "CopyMagnetLink": |
|
|
|
|
textToCopy = copyMagnetLinkFN(); |
|
|
|
|
break; |
|
|
|
|
return copyMagnetLinkFN(); |
|
|
|
|
case "CopyHash": |
|
|
|
|
textToCopy = copyHashFN(); |
|
|
|
|
break; |
|
|
|
|
return copyHashFN(); |
|
|
|
|
default: |
|
|
|
|
return ""; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return textToCopy; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|