diff --git a/files/templates/comments.html b/files/templates/comments.html
index e0c8037c1..ab3d1c8b2 100644
--- a/files/templates/comments.html
+++ b/files/templates/comments.html
@@ -465,14 +465,14 @@
};
var clipboard = new ClipboardJS('.copy-link');
- clipboard.addEventListener('success', function(e) {
+ clipboard.on('success', function(e) {
jQuery(function($) {
document.getElementById('toast-success').toast('show');
})
console.log(e);
});
- clipboard.addEventListener('error', function(e) {
+ clipboard.on('error', function(e) {
jQuery(function($) {
document.getElementById('toast-error').toast('show');
diff --git a/files/templates/log.html b/files/templates/log.html
index e6bbfcf1a..79b57319c 100644
--- a/files/templates/log.html
+++ b/files/templates/log.html
@@ -18,14 +18,14 @@