diff --git a/files/templates/comments.html b/files/templates/comments.html
index 92d355749..e0c8037c1 100644
--- a/files/templates/comments.html
+++ b/files/templates/comments.html
@@ -87,7 +87,7 @@
};
- document.getElementById('reportCommentModal').on('hidden.bs.modal', function () {
+ document.getElementById('reportCommentModal').addEventListener('hidden.bs.modal', function () {
var button = document.getElementById("reportCommentButton");
@@ -465,14 +465,14 @@
};
var clipboard = new ClipboardJS('.copy-link');
- clipboard.on('success', function(e) {
+ clipboard.addEventListener('success', function(e) {
jQuery(function($) {
document.getElementById('toast-success').toast('show');
})
console.log(e);
});
- clipboard.on('error', function(e) {
+ clipboard.addEventListener('error', function(e) {
jQuery(function($) {
document.getElementById('toast-error').toast('show');
diff --git a/files/templates/gif_modal.html b/files/templates/gif_modal.html
index 6a785d501..a5855e48c 100644
--- a/files/templates/gif_modal.html
+++ b/files/templates/gif_modal.html
@@ -98,7 +98,7 @@
// When GIF keyboard is hidden, hide all GIFs
- document.getElementById('gifModal').on('hidden.bs.modal', function (e) {
+ document.getElementById('gifModal').addEventListener('hidden.bs.modal', function (e) {
document.getElementById('gifSearch').value = null;
diff --git a/files/templates/log.html b/files/templates/log.html
index 79b57319c..e6bbfcf1a 100644
--- a/files/templates/log.html
+++ b/files/templates/log.html
@@ -18,14 +18,14 @@