Index: trunk/extensions/DonationInterface/payflowpro_gateway/form_placeholders.js |
— | — | @@ -32,6 +32,11 @@ |
33 | 33 | if (document.getElementById('lname').value == mw.msg( 'donate_interface-donor-lname' )) { |
34 | 34 | output += mw.msg( 'donate_interface-error-msg-js' ) + ' last name.\r\n'; |
35 | 35 | } |
| 36 | + var stateField = document.getElementById( 'state' ); |
| 37 | + var stateFieldSelected = stateField.options[stateField.selectedIndex].value; |
| 38 | + if( stateFieldSelected == '' || stateFieldSelected == 'YY' ) { |
| 39 | + output += mw.msg( 'donate_interface-error-msg-js' ) + ' ' + mw.msg( 'donate_interface-error-msg-state' ) + '.\r\n'; |
| 40 | + } |
36 | 41 | var countryField = document.getElementById( 'country' ); |
37 | 42 | if( countryField.options[countryField.selectedIndex].value == '' ) { |
38 | 43 | output += mw.msg( 'donate_interface-error-msg-js' ) + ' ' + mw.msg( 'donate_interface-error-msg-country' ) + '.\r\n'; |