From 3acffd9d93b3c5f00f273ac695e759cc2fc5972c Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Fri, 28 Feb 2014 05:45:42 +0000 Subject: Bug 977981 - backport upstream bug 975112 to bmo/4.2 to add the "Preview" mode for attachment comments --- template/en/default/attachment/create.html.tmpl | 12 +++++------- template/en/default/attachment/edit.html.tmpl | 16 +++++++--------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/template/en/default/attachment/create.html.tmpl b/template/en/default/attachment/create.html.tmpl index 863d83ad0..45c61d5a1 100644 --- a/template/en/default/attachment/create.html.tmpl +++ b/template/en/default/attachment/create.html.tmpl @@ -105,13 +105,11 @@ TUI_hide_default('attachment_text_field'); (optional) Add a comment about this attachment to the [% terms.bug %].
- [% INCLUDE global/textarea.html.tmpl - name = 'comment' - id = 'comment' - minrows = 6 - maxrows = 15 - cols = constants.COMMENT_COLS - wrap = 'soft' + [% INCLUDE bug/comment.html.tmpl + minrows = 6 + maxrows = 15 + cols = constants.COMMENT_COLS + wrap = 'soft' %] diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl index 740a9da45..8c954a02b 100644 --- a/template/en/default/attachment/edit.html.tmpl +++ b/template/en/default/attachment/edit.html.tmpl @@ -259,23 +259,21 @@ [% classNames = 'block' %] [% classNames = "$classes bz_private" IF attachment.isprivate %] - [% INCLUDE global/textarea.html.tmpl - id = 'comment' - name = 'comment' - minrows = 10 - cols = 80 - wrap = 'soft' - classes = classNames + [% INCLUDE bug/comment.html.tmpl + minrows = 10 + cols = 80 + wrap = 'soft' + classes = classNames %] [% Hook.process('after_comment_textarea') %] - [% END %] + [% END %]
[% IF attachment.flag_types.size > 0 %] [% PROCESS "flag/list.html.tmpl" flag_types = attachment.flag_types read_only_flags = !can_edit %] - + [% END %]
-- cgit v1.2.3-24-g4f1b