summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-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>