summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal/web
diff options
context:
space:
mode:
authorKohei Yoshino <kohei.yoshino@gmail.com>2018-06-21 23:56:44 +0200
committerdklawren <dklawren@users.noreply.github.com>2018-06-21 23:56:44 +0200
commit28b223d22e3405174b2ac29bc5bb5c2825eb631c (patch)
tree14cdef2b0deb946852304836ef0c7cde26bcda88 /extensions/BugModal/web
parent2d32435a977418443cb498c15f1283fd9111b424 (diff)
downloadbugzilla-28b223d22e3405174b2ac29bc5bb5c2825eb631c.tar.gz
bugzilla-28b223d22e3405174b2ac29bc5bb5c2825eb631c.tar.xz
Bug 1470275 - Copy Summary button should give some feedback
Diffstat (limited to 'extensions/BugModal/web')
-rw-r--r--extensions/BugModal/web/bug_modal.js4
1 files changed, 3 insertions, 1 deletions
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();
});
}