From: Kohei Yoshino Date: Thu, 21 Jun 2018 21:56:44 +0000 (-0400) Subject: Bug 1470275 - Copy Summary button should give some feedback X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28b223d22e3405174b2ac29bc5bb5c2825eb631c;p=thirdparty%2Fbugzilla.git Bug 1470275 - Copy Summary button should give some feedback --- 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(); }); }