diff options
Diffstat (limited to 'docs/pkgdown.js')
-rw-r--r-- | docs/pkgdown.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/pkgdown.js b/docs/pkgdown.js index 5fccd9c..9bd6621 100644 --- a/docs/pkgdown.js +++ b/docs/pkgdown.js @@ -30,10 +30,10 @@ /* Clipboard --------------------------*/ function changeTooltipMessage(element, msg) { - var tooltipOriginalTitle=element.getAttribute('data-original-title'); - element.setAttribute('data-original-title', msg); + var tooltipOriginalTitle=element.getAttribute('data-bs-original-title'); + element.setAttribute('data-bs-original-title', msg); $(element).tooltip('show'); - element.setAttribute('data-original-title', tooltipOriginalTitle); + element.setAttribute('data-bs-original-title', tooltipOriginalTitle); } if(ClipboardJS.isSupported()) { @@ -60,7 +60,7 @@ e.clearSelection(); }); - clipboard.on('error', function() { + clipboard.on('error', function(e) { changeTooltipMessage(e.trigger,'Press Ctrl+C or Command+C to copy'); }); |