From b14587fc9c8b0d33c5be872609cac6e9ec212338 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 26 Sep 2021 12:47:13 +0200 Subject: [PATCH] fds --- files/templates/comments.html | 4 ++-- files/templates/log.html | 4 ++-- files/templates/settings.html | 4 ++-- files/templates/submission_listing.html | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/files/templates/comments.html b/files/templates/comments.html index 293ce8268..62bd34ae7 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -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); diff --git a/files/templates/log.html b/files/templates/log.html index fae7c6555..d5a658407 100644 --- a/files/templates/log.html +++ b/files/templates/log.html @@ -18,12 +18,12 @@