From 28b223d22e3405174b2ac29bc5bb5c2825eb631c Mon Sep 17 00:00:00 2001 From: Kohei Yoshino Date: Thu, 21 Jun 2018 17:56:44 -0400 Subject: [PATCH] Bug 1470275 - Copy Summary button should give some feedback --- extensions/BugModal/web/bug_modal.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/BugModal/web/bug_modal.js b/extensions/BugModal/web/bug_modal.js index 9d2701e51..1cc3dd9a3 100644 --- a/extensions/BugModal/web/bug_modal.js +++ b/extensions/BugModal/web/bug_modal.js @@ -357,7 +357,9 @@ $(function() { // execCommand("copy") only works on selected text $('#clip-container').show(); $('#clip').val(clipboardSummary()).select(); - document.execCommand("copy"); + $('#floating-message-text') + .text(document.execCommand("copy") ? 'Bug summary copied!' : 'Couldn’t copy bug summary'); + $('#floating-message').fadeIn(250).delay(2500).fadeOut(); $('#clip-container').hide(); }); } -- 2.47.3