Skip to content

Commit afb6aee

Browse files
committed
fix broken calendar copy link on profile view(#219)
1 parent 835af35 commit afb6aee

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed
Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
const clipboard = new ClipboardJS('.clipboard-button');
1+
$(document).ready(function () {
2+
const clipboard = new ClipboardJS(".clipboard-button");
23

3-
clipboard.on("success", function (e) {
4-
const btn = $("#calendar-copy-btn");
5-
btn.tooltip("show");
6-
setTimeout(function () {
7-
btn.tooltip("hide")
8-
}, 1000);
9-
});
4+
clipboard.on("success", function (e) {
5+
const btn = $("#calendar-copy-btn");
6+
btn.tooltip("show");
7+
setTimeout(function () {
8+
btn.tooltip("hide")
9+
}, 1000);
10+
});
11+
});

0 commit comments

Comments
 (0)