summaryrefslogtreecommitdiffstats
path: root/extensions/Needinfo/template/en
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2014-09-22 17:27:24 +0200
committerDavid Lawrence <dkl@mozilla.com>2014-09-22 17:27:24 +0200
commit9773ddfe2f9da1d72843b0f5fb7476f3bf4995d2 (patch)
tree9e34c6fa539e2626c21b6f9e58dcc96dc74c66d4 /extensions/Needinfo/template/en
parent8b99a53ae4e3dd095987f5640d9b5f365af3ccd1 (diff)
downloadbugzilla-9773ddfe2f9da1d72843b0f5fb7476f3bf4995d2.tar.gz
bugzilla-9773ddfe2f9da1d72843b0f5fb7476f3bf4995d2.tar.xz
Bug 1068328: needinfo flag shows up on attachment details page only when not doing "Edit as Comment"
Diffstat (limited to 'extensions/Needinfo/template/en')
-rw-r--r--extensions/Needinfo/template/en/default/hook/attachment/edit-after_comment_textarea.html.tmpl14
1 files changed, 14 insertions, 0 deletions
diff --git a/extensions/Needinfo/template/en/default/hook/attachment/edit-after_comment_textarea.html.tmpl b/extensions/Needinfo/template/en/default/hook/attachment/edit-after_comment_textarea.html.tmpl
index cb6ddf30e..b14de653a 100644
--- a/extensions/Needinfo/template/en/default/hook/attachment/edit-after_comment_textarea.html.tmpl
+++ b/extensions/Needinfo/template/en/default/hook/attachment/edit-after_comment_textarea.html.tmpl
@@ -9,3 +9,17 @@
[% PROCESS bug/needinfo.html.tmpl
bug => attachment.bug
%]
+<script type="text/javascript">
+ document.getElementById('editButton').addEventListener('click', function() {
+ document.getElementById('attachment_view_window')
+ .appendChild(document.getElementById('needinfo_container'));
+ });
+ document.getElementById('redoEditButton').addEventListener('click', function() {
+ document.getElementById('attachment_view_window')
+ .appendChild(document.getElementById('needinfo_container'));
+ });
+ document.getElementById('undoEditButton').addEventListener('click', function() {
+ document.getElementById('smallCommentFrame')
+ .appendChild(document.getElementById('needinfo_container'));
+ });
+</script>