From 3e7f7dd04fe614f3642f85bd29d7b67c09cdb488 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 31 Mar 2015 00:05:18 +0800 Subject: Bug 972040: For bugs filed against Trunk, automatically set 'affected' and 'fixed' release-tracking flags --- .../default/hook/bug/create/create-form.html.tmpl | 89 +++++++++------------- 1 file changed, 37 insertions(+), 52 deletions(-) (limited to 'extensions/TrackingFlags/template/en') diff --git a/extensions/TrackingFlags/template/en/default/hook/bug/create/create-form.html.tmpl b/extensions/TrackingFlags/template/en/default/hook/bug/create/create-form.html.tmpl index 59fe1d0ec..c027c6b7f 100644 --- a/extensions/TrackingFlags/template/en/default/hook/bug/create/create-form.html.tmpl +++ b/extensions/TrackingFlags/template/en/default/hook/bug/create/create-form.html.tmpl @@ -6,58 +6,43 @@ # defined by the Mozilla Public License, v. 2.0. #%] -[% IF tracking_flags.size %] - [% tracking_flag_names = [] %] - [% FOREACH flag = tracking_flags %] - [% tracking_flag_names.push(flag.name) %] - [% END %] - - -[% END %] + [% IF highest_status_firefox %] + $('#version, #bug_status') + .change(function() { + var version = $('#version').val(); + if ($('#bug_status').val() != 'UNCONFIRMED' + && ( + version.toLowerCase() == 'trunk' + || version == highest_status_firefox + ' Branch' + || version == 'Firefox ' + highest_status_firefox + )) + { + $('#cf_status_firefox' + highest_status_firefox).val('affected'); + } + else { + $('#cf_status_firefox' + highest_status_firefox).val('---'); + } + }).change(); + [% END %] + }); + -- cgit v1.2.3-24-g4f1b