summaryrefslogtreecommitdiffstats
path: root/extensions/Needinfo/template/en
diff options
context:
space:
mode:
authorMary Umoh <umohm12@gmail.com>2017-07-12 00:17:38 +0200
committerDylan William Hardison <dylan@hardison.net>2017-07-12 00:17:38 +0200
commit01e09b0b05a92bf1a95e09118d05259a4c70a7c4 (patch)
tree731d92d7fd94a3e2d53989c77b1557d2d79fc928 /extensions/Needinfo/template/en
parentdabfa4c750925af1cd50c7e2afb4a467d147a6ea (diff)
downloadbugzilla-01e09b0b05a92bf1a95e09118d05259a4c70a7c4.tar.gz
bugzilla-01e09b0b05a92bf1a95e09118d05259a4c70a7c4.tar.xz
Bug 1371446 - Don't allow needinfo requests from the void
Diffstat (limited to 'extensions/Needinfo/template/en')
-rw-r--r--extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl b/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl
index 75ec90b89..46083e108 100644
--- a/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl
+++ b/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl
@@ -102,8 +102,12 @@ $(function() {
function new_needinfo_changed(event) {
if ($('#needinfo').is(':checked') && $('#needinfo_role').val() === 'other') {
+ $('#needinfo_from').prop('required', true);
$('#needinfo_from').focus().select();
}
+ else {
+ $('#needinfo_from').prop('required', false);
+ }
}
function existing_needinfo_changed(event) {