Fix hover for tooltip

This commit is contained in:
Alexander Meindl 2019-10-02 12:17:00 +02:00
parent 56558e1783
commit 005656d0f2

View File

@ -11,11 +11,11 @@ function openExternalLink() {
function setClipboardJS(element){
var clipboard = new ClipboardJS(element);
clipboard.on('success', function(e) {
e.clearSelection();
$(element).tooltip({
content: $(element).data('label-copied')
});
setTimeout(function() {
e.clearSelection();
$(element).tooltip({
content: $(element).data('label-to-copy')
});