From e81dc874a529541cc39d7fe128c427babdc18f23 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Fri, 17 Feb 2017 17:12:27 +0000 Subject: Bug 1257608 - Convert all + diff --git a/extensions/BugModal/template/en/default/bug_modal/activity_stream.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/activity_stream.html.tmpl index f5074dbfa..f046cf904 100644 --- a/extensions/BugModal/template/en/default/bug_modal/activity_stream.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/activity_stream.html.tmpl @@ -7,6 +7,11 @@ #%]
+ [% IF user.settings.comment_box_position.value == 'after_comments' %] + + [% ELSE %] + + [% END %]
diff --git a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl index a33cc541a..4b23df786 100644 --- a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl @@ -1275,12 +1275,7 @@ [% IF user.id %]
- - [% IF user.settings.comment_box_position.value == 'after_comments' %] - - [% ELSE %] - - [% END %] + Attach File [%+ Hook.process('top_actions') %]
diff --git a/extensions/BugModal/web/bug_modal.js b/extensions/BugModal/web/bug_modal.js index 25a9d1a73..cfeec2271 100644 --- a/extensions/BugModal/web/bug_modal.js +++ b/extensions/BugModal/web/bug_modal.js @@ -804,13 +804,6 @@ $(function() { tracking_flag_change(event.target); }); - // add attachments - $('#attachments-add-btn') - .click(function(event) { - event.preventDefault(); - window.location.href = 'attachment.cgi?bugid=' + BUGZILLA.bug_id + '&action=enter'; - }); - // take button $('.take-btn') .click(function(event) { -- cgit v1.2.3-24-g4f1b