Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouismaxime.piton <louismaxime.piton@orange.com>2022-04-01 11:01:51 +0300
committerGeoSot <geo.sotis@gmail.com>2022-04-01 11:26:32 +0300
commit273ebad151b98c37ebedc5111c3efff596dd0d24 (patch)
treecc44ee7423385367db3e2678907b3451ef7219e7
parent00d028e646eea009b779bb123d5f5e2e1457c4d5 (diff)
Changing to btnTitle and btnEdit
-rw-r--r--site/assets/js/application.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/site/assets/js/application.js b/site/assets/js/application.js
index cf5e4c9c70..fa1fba00d9 100644
--- a/site/assets/js/application.js
+++ b/site/assets/js/application.js
@@ -119,6 +119,7 @@
// Insert copy to clipboard button before .highlight
var btnTitle = 'Copy to clipboard'
+ var btnEdit = 'Edit on StackBlitz'
var btnHtml = '<div class="bd-clipboard"><button type="button" class="btn-clipboard">Copy</button></div>'
document.querySelectorAll('div.highlight')
.forEach(function (element) {
@@ -143,8 +144,8 @@
})
}
- snippetButtonTooltip('.btn-clipboard', 'Copy to clipboard')
- snippetButtonTooltip('.btn-edit', 'Edit on StackBlitz')
+ snippetButtonTooltip('.btn-clipboard', btnTitle)
+ snippetButtonTooltip('.btn-edit', btnEdit)
var clipboard = new ClipboardJS('.btn-clipboard', {
target: function (trigger) {