summaryrefslogtreecommitdiffstats
path: root/extensions/MozProjectReview/web/js
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-01-31 19:20:40 +0100
committerDave Lawrence <dlawrence@mozilla.com>2013-01-31 19:20:40 +0100
commit3aa44a91465b2a4411659e4c403277c28b26f768 (patch)
tree6edc40950011aaeadd005af18ff24e33f0a0f9ef /extensions/MozProjectReview/web/js
parent64ed5b86b0d108e2a98b9e409614a4503b8db758 (diff)
downloadbugzilla-3aa44a91465b2a4411659e4c403277c28b26f768.tar.gz
bugzilla-3aa44a91465b2a4411659e4c403277c28b26f768.tar.xz
Bug 832031 - Project Kickoff Form: Add "PO Needed?" when "<=$25, 000" is selected under "Vendor Cost"
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 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;