From 235bd237ffba86017795db341b0deaf42119c47d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 26 Sep 2021 12:40:19 +0200 Subject: [PATCH] dsf --- files/templates/comments.html | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/files/templates/comments.html b/files/templates/comments.html index 464dc7c7e..5db3ae956 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -458,21 +458,17 @@ } }; - // var clipboard = new ClipboardJS('.copy-link'); - // clipboard.on('success', function(e) { - - // jQuery(function($) { - // document.getElementById('toast-success').toast('show'); - // }) - // console.log(e); - // }); - // clipboard.on('error', function(e) { - - // jQuery(function($) { - // document.getElementById('toast-error').toast('show'); - // }) - // console.log(e); - // }); + var clipboard = new ClipboardJS('.copy-link'); + clipboard.on('success', function(e) { + var myToast = new bootstrap.Toast(document.getElementById('toast-success')); + myToast.show(); + console.log(e); + }); + clipboard.on('error', function(e) { + var myToast = new bootstrap.Toast(document.getElementById('toast-error')); + myToast.show(); + console.log(e); + });