master
Aevann1 2021-09-26 12:47:13 +02:00
parent b930cccc94
commit b14587fc9c
4 changed files with 8 additions and 8 deletions

View File

@ -459,12 +459,12 @@
};
var clipboard = new ClipboardJS('.copy-link');
clipboard.on('success', function(e) {
clipboard.addEventListener('success', function(e) {
var myToast = new bootstrap.Toast(document.getElementById('toast-success'));
myToast.show();
console.log(e);
});
clipboard.on('error', function(e) {
clipboard.addEventListener('error', function(e) {
var myToast = new bootstrap.Toast(document.getElementById('toast-error'));
myToast.show();
console.log(e);

View File

@ -18,12 +18,12 @@
<script>
var clipboard = new ClipboardJS('.copy-link');
clipboard.on('success', function(e) {
clipboard.addEventListener('success', function(e) {
var myToast = new bootstrap.Toast(document.getElementById('toast-success'));
myToast.show();
console.log(e);
});
clipboard.on('error', function(e) {
clipboard.addEventListener('error', function(e) {
var myToast = new bootstrap.Toast(document.getElementById('toast-error'));
myToast.show();
console.log(e);

View File

@ -18,12 +18,12 @@
<script>
var clipboard = new ClipboardJS('.copy-link');
clipboard.on('success', function(e) {
clipboard.addEventListener('success', function(e) {
var myToast = new bootstrap.Toast(document.getElementById('toast-success'));
myToast.show();
console.log(e);
});
clipboard.on('error', function(e) {
clipboard.addEventListener('error', function(e) {
var myToast = new bootstrap.Toast(document.getElementById('toast-error'));
myToast.show();
console.log(e);

View File

@ -3,12 +3,12 @@
<script>
var clipboard = new ClipboardJS('.copy-link');
clipboard.on('success', function(e) {
clipboard.addEventListener('success', function(e) {
var myToast = new bootstrap.Toast(document.getElementById('toast-success'));
myToast.show();
console.log(e);
});
clipboard.on('error', function(e) {
clipboard.addEventListener('error', function(e) {
var myToast = new bootstrap.Toast(document.getElementById('toast-error'));
myToast.show();
console.log(e);