From 6d01972698db25da5f6285dad9d9713d1d769016 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 6 Dec 2016 19:59:01 +0000 Subject: Bug 1287461 - Can't request needinfo from someone when I'm needinfo'd on a bug --- .../template/en/default/bug/needinfo.html.tmpl | 26 ++++++++++++---------- 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'extensions/Needinfo/template/en') diff --git a/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl b/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl index 3a3bc7325..4d2a39f38 100644 --- a/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl +++ b/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl @@ -122,11 +122,15 @@ $(function() { function existing_needinfo_changed(event) { var $target = $(event.target); var is_redirect = !$target.is(':checked') && $target.data('is-self'); - $('#needinfo_from_label').text(is_redirect - ? 'Redirect my needinfo request to' - : 'Need more information from' - ); - $('#needinfo_redirect').val(is_redirect ? '1' : ''); + if (is_redirect) { + $('#needinfo_from_label').hide(); + $('#needinfo_type').show(); + $('#needinfo_type').val('redirect_to'); + } else { + $('#needinfo_from_label').show(); + $('#needinfo_type').hide(); + $('#needinfo_type').val('needinfo_from'); + } } function needinfo_role_changed() { @@ -186,18 +190,16 @@ $(function() { [% IF needinfo_flags.size == 0 || needinfo_flagtype.is_multiplicable %] - + - +