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