From 3aa44a91465b2a4411659e4c403277c28b26f768 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Thu, 31 Jan 2013 13:20:40 -0500 Subject: Bug 832031 - Project Kickoff Form: Add "PO Needed?" when "<=$25, 000" is selected under "Vendor Cost" --- extensions/MozProjectReview/web/js/moz_project_review.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'extensions/MozProjectReview/web/js') diff --git a/extensions/MozProjectReview/web/js/moz_project_review.js b/extensions/MozProjectReview/web/js/moz_project_review.js index 028666fcc..b5cdc3e38 100644 --- a/extensions/MozProjectReview/web/js/moz_project_review.js +++ b/extensions/MozProjectReview/web/js/moz_project_review.js @@ -142,6 +142,12 @@ MPR.validateAndSubmit = function () { alert_text += "Please include additional description for the out of budget line item\n"; } + if (Dom.get('vendor_cost').value == '<= $25,000' + && Dom.get('po_needed').value == '') + { + alert_text += "Please select whether a PO is needed or not\n"; + } + if (alert_text) { alert(alert_text); return false; -- cgit v1.2.3-24-g4f1b