diff --git a/cara/apps/calculator/static/js/report.js b/cara/apps/calculator/static/js/report.js index a6d53017..e04fc9e8 100644 --- a/cara/apps/calculator/static/js/report.js +++ b/cara/apps/calculator/static/js/report.js @@ -532,12 +532,15 @@ function draw_alternative_scenarios_plot(concentration_plot_svg_id, alternative_ } function copy_clipboard(shareable_link) { + + $("#mobile_link").attr('title', 'Copied!') + .tooltip('_fixTitle') + .tooltip('show'); + const el = document.createElement('textarea'); el.value = shareable_link; document.body.appendChild(el); el.select(); document.execCommand('copy'); document.body.removeChild(el); - - alert("Shareable link copied to clipboard.") } \ No newline at end of file diff --git a/cara/apps/calculator/templates/base/calculator.report.html.j2 b/cara/apps/calculator/templates/base/calculator.report.html.j2 index 34c24249..4267504e 100644 --- a/cara/apps/calculator/templates/base/calculator.report.html.j2 +++ b/cara/apps/calculator/templates/base/calculator.report.html.j2 @@ -165,7 +165,7 @@
-
+