Index: trunk/extensions/DonationInterface/payflowpro_gateway/validate_input.js |
— | — | @@ -61,6 +61,12 @@ |
62 | 62 | return true; |
63 | 63 | } |
64 | 64 | |
| 65 | +function submit_form( ccform ) { |
| 66 | + if ( validate_form( ccform )) { |
| 67 | + ccform.submit(); |
| 68 | + } |
| 69 | + return true; |
| 70 | +} |
65 | 71 | |
66 | 72 | function disableStates( form ) { |
67 | 73 | |
Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoColumn.php |
— | — | @@ -29,7 +29,7 @@ |
30 | 30 | $form = Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-form-submit')); |
31 | 31 | $form .= Xml::openElement( 'div', array( 'id' => 'mw-donate-submit-button' )); |
32 | 32 | //$form .= Xml::submitButton( wfMsg( 'payflowpro_gateway-submit-button' )); |
33 | | - $form .= Xml::openElement( 'input', array( 'class' => 'input-button button-navyblue', 'value' => wfMsg( 'payflowpro_gateway-submit-button'), 'onclick' => 'form.submit()', 'type' => 'submit')); |
| 33 | + $form .= Xml::openElement( 'input', array( 'class' => 'input-button button-navyblue', 'value' => wfMsg( 'payflowpro_gateway-submit-button'), 'onclick' => 'submit_form( this )', 'type' => 'submit')); |
34 | 34 | $form .= Xml::closeElement( 'div' ); |
35 | 35 | $form .= Xml::openElement( 'div', array( 'class' => 'mw-donate-submessage', 'id' => 'payflowpro_gateway-donate-submessage' ) ) . |
36 | 36 | wfMsg( 'payflowpro_gateway-donate-click' ); |