1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 21:53:26 +00:00

Update locale settings for code block clipboard (resolve #408)

This commit is contained in:
Cotes Chung
2021-09-15 15:02:23 +08:00
parent 53b0329e5a
commit 34631a0c30
7 changed files with 10 additions and 15 deletions

View File

@@ -24,9 +24,8 @@ $(function() {
placement: 'left'
});
function setTooltip(btn, msg) {
function setTooltip(btn) {
$(btn).tooltip('hide')
.attr('data-original-title', msg)
.tooltip('show');
}
@@ -70,7 +69,7 @@ $(function() {
return;
}
setTooltip(e.trigger, 'Copied!');
setTooltip(e.trigger);
hideTooltip(e.trigger);
setSuccessIcon(e.trigger);