summaryrefslogtreecommitdiffstats
path: root/extensions/MozProjectReview/web/js
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-12-12 03:48:00 +0100
committerDave Lawrence <dlawrence@mozilla.com>2012-12-12 03:48:00 +0100
commitb4d57a7e6b4e8f1dc540d6b0ed651f990e5c3213 (patch)
treea3092116722a8f0f904d1ef261a06a692a842e95 /extensions/MozProjectReview/web/js
parent7ef08cc7c04992fb524f7f6b802ede78e6671f3b (diff)
downloadbugzilla-b4d57a7e6b4e8f1dc540d6b0ed651f990e5c3213.tar.gz
bugzilla-b4d57a7e6b4e8f1dc540d6b0ed651f990e5c3213.tar.xz
Bug 819022 - Project Kickoff Form: Add "Vendor" and "Line Item in Budget?" in the Finance portion
Diffstat (limited to 'extensions/MozProjectReview/web/js')
-rw-r--r--extensions/MozProjectReview/web/js/moz_project_review.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/extensions/MozProjectReview/web/js/moz_project_review.js b/extensions/MozProjectReview/web/js/moz_project_review.js
index 8aea8796b..29e765ad2 100644
--- a/extensions/MozProjectReview/web/js/moz_project_review.js
+++ b/extensions/MozProjectReview/web/js/moz_project_review.js
@@ -23,6 +23,7 @@ MPR.required_fields = {
"separate_party": "Please select a value for separate party in the initial questions section"
},
"finance_questions": {
+ "finance_purchase_vendor": "Please enter a value for vendor in the finance questions section",
"finance_purchase_what": "Please enter a value for what in the finance questions section",
"finance_purchase_why": "Please enter a value for why in the finance questions section",
"finance_purchase_risk": "Please enter a value for risk in the finance questions section",
@@ -121,6 +122,11 @@ MPR.validateAndSubmit = function () {
if (!MPR.isFilledOut('vendor_cost')) alert_text += "Please select a value for vendor cost\n";
}
+ if (Dom.get('finance_purchase_inbudget').value == 'No') {
+ if (!MPR.isFilledOut('finance_purchase_notinbudget_why'))
+ alert_text += "Please include additional description for the out of budget line item\n";
+ }
+
if (alert_text) {
alert(alert_text);
return false;