Index: trunk/extensions/DonationInterface/globalcollect_gateway/forms/html/webitects_2_3step.html |
— | — | @@ -127,7 +127,7 @@ |
128 | 128 | </div> |
129 | 129 | <div id="step3header"><h3>%donate_interface-cc-form-header-payment% <span class="mute" id="change-payment" style="display: none;">(<a href="#">%donate_interface-change%</a>)</span></h3></div> |
130 | 130 | <div id="step3wrapper" style="display: none;"> |
131 | | - <div id="payment" class="gainlayout" style="height:300px;text-align:center;"></div> |
| 131 | + <div id="payment" class="gainlayout" style="height:314px;text-align:center;"></div> |
132 | 132 | </div> |
133 | 133 | |
134 | 134 | <input type="hidden" name="returnto" value="Thank_You/en" /> |
Index: trunk/extensions/DonationInterface/globalcollect_gateway/forms/js/webitects_2_3step.js |
— | — | @@ -60,6 +60,11 @@ |
61 | 61 | $( ".hint" ).ezpz_hint(); |
62 | 62 | |
63 | 63 | $( "#cc" ).click( function() { |
| 64 | + /* safety check for people who hit the back button */ |
| 65 | + checkedValue = $( "input[name='amountRadio']:checked" ).val(); |
| 66 | + if ( $( 'input[name="amount"]' ).val() == '0.00' && checkedValue && !isNaN( checkedValue ) ) { |
| 67 | + setAmount( checkedValue ); |
| 68 | + } |
64 | 69 | if ( validateAmount() ) { |
65 | 70 | showAmount( $( 'input[name="amount"]' ) ); |
66 | 71 | showStep2(); |
— | — | @@ -67,6 +72,11 @@ |
68 | 73 | } ); |
69 | 74 | |
70 | 75 | $( "#pp" ).click( function() { |
| 76 | + /* safety check for people who hit the back button */ |
| 77 | + checkedValue = $( "input[name='amountRadio']:checked" ).val(); |
| 78 | + if ( $( 'input[name="amount"]' ).val() == '0.00' && checkedValue && !isNaN( checkedValue ) ) { |
| 79 | + setAmount( checkedValue ); |
| 80 | + } |
71 | 81 | if ( validateAmount() ) { |
72 | 82 | // set the action to go to PayPal |
73 | 83 | $( 'input[name="gateway"]' ).val( "paypal" ); |
— | — | @@ -185,7 +195,7 @@ |
186 | 196 | $( '#payment' ).empty(); |
187 | 197 | // Insert the iframe into the form |
188 | 198 | $( '#payment' ).append( |
189 | | - '<iframe src="'+data.result.formaction+'" width="318" height="300" frameborder="0"></iframe>' |
| 199 | + '<iframe src="'+data.result.formaction+'" width="318" height="314" frameborder="0"></iframe>' |
190 | 200 | ); |
191 | 201 | |
192 | 202 | } |