Index: branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/payflowpro_gateway/forms/js/webitects_2_3step.js |
— | — | @@ -174,8 +174,11 @@ |
175 | 175 | $( "#change-amount" ).show(); |
176 | 176 | } |
177 | 177 | function validateAmount() { |
| 178 | + |
| 179 | + // TODO: THIS NEEDS TO BE REPLACED WITH KALDARI'S CURRENCIES |
178 | 180 | var minimums = { |
179 | | - 'USD' : 1 |
| 181 | + 'USD' : 1, |
| 182 | + 'CAD' : 1 |
180 | 183 | }; |
181 | 184 | var error = true; |
182 | 185 | var amount = $( 'input[name="amount"]' ).val(); // get the amount |
— | — | @@ -189,8 +192,7 @@ |
190 | 193 | error = ( amount == null || isNaN( amount ) || amount.value <= 0 ); |
191 | 194 | |
192 | 195 | // Check amount is at least the minimum |
193 | | - var currency_code = 'USD'; // hard-coded for these forms and tests |
194 | | - $( 'input[name="currency_code"]' ).val( currency_code ); |
| 196 | + var currency_code = $( 'input[name="currency_code"]' ).val(); |
195 | 197 | if ( typeof( minimums[currency_code] ) == 'undefined' ) { |
196 | 198 | minimums[currency_code] = 1; |
197 | 199 | } |
Property changes on: branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/payflowpro_gateway/forms |
___________________________________________________________________ |
Modified: svn:mergeinfo |
198 | 200 | Merged /trunk/extensions/DonationInterface/payflowpro_gateway/forms:r101962 |
Property changes on: branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/payflowpro_gateway |
___________________________________________________________________ |
Modified: svn:mergeinfo |
199 | 201 | Merged /trunk/extensions/DonationInterface/payflowpro_gateway:r101962 |
Index: branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/globalcollect_gateway/forms/js/webitects_2_3step.js |
— | — | @@ -249,8 +249,11 @@ |
250 | 250 | $( "#change-amount" ).show(); |
251 | 251 | } |
252 | 252 | function validateAmount() { |
| 253 | + |
| 254 | + // TODO: THIS NEEDS TO BE REPLACED WITH KALDARI'S CURRENCIES |
253 | 255 | var minimums = { |
254 | | - 'USD' : 1 |
| 256 | + 'USD' : 1, |
| 257 | + 'CAD' : 1 |
255 | 258 | }; |
256 | 259 | var error = true; |
257 | 260 | var amount = $( 'input[name="amount"]' ).val(); // get the amount |
— | — | @@ -264,8 +267,7 @@ |
265 | 268 | error = ( amount == null || isNaN( amount ) || amount.value <= 0 ); |
266 | 269 | |
267 | 270 | // Check amount is at least the minimum |
268 | | - var currency_code = 'USD'; // hard-coded for these forms and tests |
269 | | - $( 'input[name="currency_code"]' ).val( currency_code ); |
| 271 | + var currency_code = $( 'input[name="currency_code"]' ).val(); |
270 | 272 | if ( typeof( minimums[currency_code] ) == 'undefined' ) { |
271 | 273 | minimums[currency_code] = 1; |
272 | 274 | } |
Property changes on: branches/fundraising/deployment/payments_1.17/extensions/DonationInterface |
___________________________________________________________________ |
Modified: svn:mergeinfo |
273 | 275 | Merged /trunk/extensions/DonationInterface:r101962 |