From 273ebad151b98c37ebedc5111c3efff596dd0d24 Mon Sep 17 00:00:00 2001 From: "louismaxime.piton" Date: Fri, 1 Apr 2022 10:01:51 +0200 Subject: [PATCH] Changing to btnTitle and btnEdit --- site/assets/js/application.js | 5 +++-- 1 file 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 = '
' 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) {