summaryrefslogtreecommitdiffstats
path: root/extensions/BMO
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-02-07 18:13:24 +0100
committerDave Lawrence <dlawrence@mozilla.com>2012-02-07 18:13:24 +0100
commit36dd0f79824db0169d9b996834602dc2c20f1590 (patch)
treed1782bbf982e085ebe3e92e7e2d6a9a04ad86653 /extensions/BMO
parent8f46f1cc45215d0da05bdf548ce1c11902beead7 (diff)
downloadbugzilla-36dd0f79824db0169d9b996834602dc2c20f1590.tar.gz
bugzilla-36dd0f79824db0169d9b996834602dc2c20f1590.tar.xz
Bug 723398 - update brownbag request form to remove "Confidential Mozilla Corporation Bug" group
r=glob
Diffstat (limited to 'extensions/BMO')
-rw-r--r--extensions/BMO/template/en/default/bug/create/create-brownbag.html.tmpl13
1 files changed, 12 insertions, 1 deletions
diff --git a/extensions/BMO/template/en/default/bug/create/create-brownbag.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-brownbag.html.tmpl
index 309991311..3e10e29cc 100644
--- a/extensions/BMO/template/en/default/bug/create/create-brownbag.html.tmpl
+++ b/extensions/BMO/template/en/default/bug/create/create-brownbag.html.tmpl
@@ -55,6 +55,18 @@ function trySubmit() {
var location = document.getElementById('location').value;
var shortdesc = 'Event - (' + date + ' ' + time + ') - ' + location + ' - ' + topic;
document.getElementById('short_desc').value = shortdesc;
+
+ // If intended audience is employees only, add mozilla-corporation-confidential group
+ var audience = document.getElementById('audience').value;
+ if (audience == 'Employees Only') {
+ var brownbagRequestForm = document.getElementById('brownbagRequestForm');
+ var groups = document.createElement('input');
+ groups.type = 'hidden';
+ groups.name = 'groups';
+ groups.value = 'mozilla-corporation-confidential';
+ brownbagRequestForm.appendChild(groups);
+ }
+
return true;
}
</script>
@@ -71,7 +83,6 @@ function trySubmit() {
<input type="hidden" name="bug_severity" id="bug_severity" value="normal">
<input type="hidden" name="comment" id="comment" value="">
<input type="hidden" name="short_desc" id="short_desc" value="">
- <input type="hidden" name="groups" value="mozilla-corporation-confidential">
<input type="hidden" name="token" value="[% token FILTER html %]">
<table>