summaryrefslogtreecommitdiffstats
path: root/extensions/MozProjectReview/web
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-11-13 17:45:13 +0100
committerDave Lawrence <dlawrence@mozilla.com>2013-11-13 17:45:13 +0100
commitd52ce71f7101596e05771f02f5cca7ce5df059d0 (patch)
tree8bcb49efe2d5057d6e30a5f2ff4aed75a3e1299f /extensions/MozProjectReview/web
parentca8cbc67699faaf38038578ce7aee9439a245aac (diff)
downloadbugzilla-d52ce71f7101596e05771f02f5cca7ce5df059d0.tar.gz
bugzilla-d52ce71f7101596e05771f02f5cca7ce5df059d0.tar.xz
Bug 843298 - Project Kickoff Form: require explicit public/private choice
r=dkl
Diffstat (limited to 'extensions/MozProjectReview/web')
-rw-r--r--extensions/MozProjectReview/web/js/moz_project_review.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/extensions/MozProjectReview/web/js/moz_project_review.js b/extensions/MozProjectReview/web/js/moz_project_review.js
index 5ea1d1a0e..2dfbeb87f 100644
--- a/extensions/MozProjectReview/web/js/moz_project_review.js
+++ b/extensions/MozProjectReview/web/js/moz_project_review.js
@@ -13,6 +13,7 @@ var MPR = {
required_fields: {
"initial_questions": {
"short_desc": "Please enter a value for project or feature name in the initial questions section",
+ "visibility": "Please select a value for project visibility in the initial questions section",
"cc": "Please enter a value for points of contact in the initial questions section",
"key_initiative": "Please select a value for key initiative in the initial questions section",
"release_date": "Please enter a value for release date in the initial questions section",
@@ -242,6 +243,15 @@ var MPR = {
return false;
}
+ var visibility = MPR.fieldValue('visibility');
+ if (visibility == 'private') {
+ var groups = document.createElement('input');
+ groups.type = 'hidden';
+ groups.name = 'groups';
+ groups.value = 'mozilla-corporation-confidential';
+ Dom.get('mozProjectForm').appendChild(groups);
+ }
+
return true;
},