]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1470275 - Copy Summary button should give some feedback
authorKohei Yoshino <kohei.yoshino@gmail.com>
Thu, 21 Jun 2018 21:56:44 +0000 (17:56 -0400)
committerdklawren <dklawren@users.noreply.github.com>
Thu, 21 Jun 2018 21:56:44 +0000 (17:56 -0400)
extensions/BugModal/web/bug_modal.js

index 9d2701e51af8bee0a20602359dbe817ec765a2ee..1cc3dd9a381a34358ccf88482d9cff1e963a492f 100644 (file)
@@ -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();
                 });
         }