diff options
author | Byron Jones <bjones@mozilla.com> | 2012-12-04 17:20:54 +0100 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-12-04 17:20:54 +0100 |
commit | b061ce481380dfd01f85ea84ef700eb7589433e3 (patch) | |
tree | e4d2129bca00e4177920b4072507552481334a50 /extensions/MozProjectReview/web/js | |
parent | 658988096fae00807553645adc1e1976b2586471 (diff) | |
download | bugzilla-b061ce481380dfd01f85ea84ef700eb7589433e3.tar.gz bugzilla-b061ce481380dfd01f85ea84ef700eb7589433e3.tar.xz |
Bug 817157: Project Kickoff Form: Change "Current Goal" to drop down list
Diffstat (limited to 'extensions/MozProjectReview/web/js')
-rw-r--r-- | extensions/MozProjectReview/web/js/moz_project_review.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/extensions/MozProjectReview/web/js/moz_project_review.js b/extensions/MozProjectReview/web/js/moz_project_review.js index 36a8232bd..8aea8796b 100644 --- a/extensions/MozProjectReview/web/js/moz_project_review.js +++ b/extensions/MozProjectReview/web/js/moz_project_review.js @@ -16,6 +16,7 @@ MPR.required_fields = { "short_desc": "Please enter a value for project or feature name in the initial questions section", "cc": "Please enter a value for points of contact in the initial questions section", "urgency": "Please enter a value for urgency in the initial questions section", + "key_initiative": "Please select a value for key initiative in the initial questions section", "project_status": "Please select a value for project status in the initial questions section", "mozilla_data": "Please select a value for mozilla data in the initial questions section", "new_or_change": "Please select a value for new or change to existing project in the initial questions section", @@ -99,11 +100,9 @@ MPR.validateAndSubmit = function () { var alert_text = ''; var section = ''; for (section in MPR.required_fields) { - console.log("section: " + section); if (!Dom.hasClass(section, 'bz_default_hidden')) { var field = ''; for (field in MPR.required_fields[section]) { - console.log("field: " + field); if (!MPR.isFilledOut(field)) { alert_text += MPR.required_fields[section][field] + "\n"; } @@ -111,6 +110,11 @@ MPR.validateAndSubmit = function () { } } + if (Dom.get('key_initiative').value == 'Other') { + if (!MPR.isFilledOut('key_initiative_other')) + alert_text += "Please enter a value for key initiative in the initial questions section\n"; + } + if (Dom.get('separate_party').value == 'Yes') { if (!MPR.isFilledOut('relationship_type')) alert_text += "Please select a value for type of relationship\n"; if (!MPR.isFilledOut('data_access')) alert_text += "Please select a value for data access\n"; |