diff --git a/files/templates/comments.html b/files/templates/comments.html
index 464dc7c7ef..5db3ae9564 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);
+ });