https://www.mediawiki.org/wiki/Special:Code/MediaWiki/102001

Revision: 102001
Author:   awjrichards
Date:     2011-11-04 15:33:19 +0000 (Fri, 04 Nov 2011)
Log Message:
-----------
MFT r101962

Modified Paths:
--------------
    
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/globalcollect_gateway/forms/js/webitects_2_3step.js
    
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/payflowpro_gateway/forms/js/webitects_2_3step.js

Property Changed:
----------------
    branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/
    
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/payflowpro_gateway/
    
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/payflowpro_gateway/forms/


Property changes on: 
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface
___________________________________________________________________
Modified: svn:mergeinfo
   - 
/branches/fundraising/deployment/payments_1.17/extensions/DonationInterface:99568
/trunk/extensions/DonationInterface:75657-77440,77442-79147,79149-79286,79288-79296,79298-79299,79301-79303,79305-86440,92825,96120-96121,96125,97945-99042,99045-99408,99503,99555,99568,99570-101026,101056,101071-101072,101074,101099,101109,101112,101163,101180,101192,101200,101205,101207,101217,101230,101232,101236,101382,101399,101441,101501-101504,101512,101541,101547,101549,101554-101555,101559,101563,101576,101578-101579,101631,101633,101638,101669,101676,101679,101689,101700,101706,101719,101740,101747,101757,101764,101778-101779,101781,101786-101789,101798,101846,101852,101878,101917,101929,101996
   + 
/branches/fundraising/deployment/payments_1.17/extensions/DonationInterface:99568
/trunk/extensions/DonationInterface:75657-77440,77442-79147,79149-79286,79288-79296,79298-79299,79301-79303,79305-86440,92825,96120-96121,96125,97945-99042,99045-99408,99503,99555,99568,99570-101026,101056,101071-101072,101074,101099,101109,101112,101163,101180,101192,101200,101205,101207,101217,101230,101232,101236,101382,101399,101441,101501-101504,101512,101541,101547,101549,101554-101555,101559,101563,101576,101578-101579,101631,101633,101638,101669,101676,101679,101689,101700,101706,101719,101740,101747,101757,101764,101778-101779,101781,101786-101789,101798,101846,101852,101878,101917,101929,101962,101996

Modified: 
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/globalcollect_gateway/forms/js/webitects_2_3step.js
===================================================================
--- 
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/globalcollect_gateway/forms/js/webitects_2_3step.js
      2011-11-04 15:28:14 UTC (rev 102000)
+++ 
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/globalcollect_gateway/forms/js/webitects_2_3step.js
      2011-11-04 15:33:19 UTC (rev 102001)
@@ -249,8 +249,11 @@
        $( "#change-amount" ).show();
 }
 function validateAmount() {
+
+       // TODO: THIS NEEDS TO BE REPLACED WITH KALDARI'S CURRENCIES
        var minimums = {
-               'USD' : 1
+               'USD' : 1,
+               'CAD' : 1
        };
        var error = true;
        var amount = $( 'input[name="amount"]' ).val(); // get the amount
@@ -264,8 +267,7 @@
        error = ( amount == null || isNaN( amount ) || amount.value <= 0 );
 
        // Check amount is at least the minimum
-       var currency_code = 'USD'; // hard-coded for these forms and tests
-       $( 'input[name="currency_code"]' ).val( currency_code );
+       var currency_code = $( 'input[name="currency_code"]' ).val();
        if ( typeof( minimums[currency_code] ) == 'undefined' ) {
                minimums[currency_code] = 1;
        }


Property changes on: 
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/payflowpro_gateway
___________________________________________________________________
Modified: svn:mergeinfo
   - 
/branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/payflowpro_gateway:99568
/trunk/extensions/DonationInterface/payflowpro_gateway:75657-77440,77442-79147,79149-79286,79288-79296,79298-79299,79301-79303,79305-86440,92825,96120-96121,96125,96127-97926,97945-99042,99045-99408,99503,99555,99568,99570-101026,101109,101180,101207,101441,101502,101576,101676,101679,101757,101786,101852,101929,101996
   + 
/branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/payflowpro_gateway:99568
/trunk/extensions/DonationInterface/payflowpro_gateway:75657-77440,77442-79147,79149-79286,79288-79296,79298-79299,79301-79303,79305-86440,92825,96120-96121,96125,96127-97926,97945-99042,99045-99408,99503,99555,99568,99570-101026,101109,101180,101207,101441,101502,101576,101676,101679,101757,101786,101852,101929,101962,101996


Property changes on: 
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/payflowpro_gateway/forms
___________________________________________________________________
Modified: svn:mergeinfo
   - 
/branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/payflowpro_gateway/forms:99568
/trunk/extensions/DonationInterface/payflowpro_gateway/forms:75657-77440,77442-79147,79149-79286,79288-79296,79298-79299,79301-79303,79305-96114,96125,96127-97926,97945-99042,99045-99408,99503,99555,99568,100277-101026,101109,101441,101757,101852,101929,101996
   + 
/branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/payflowpro_gateway/forms:99568
/trunk/extensions/DonationInterface/payflowpro_gateway/forms:75657-77440,77442-79147,79149-79286,79288-79296,79298-79299,79301-79303,79305-96114,96125,96127-97926,97945-99042,99045-99408,99503,99555,99568,100277-101026,101109,101441,101757,101852,101929,101962,101996

Modified: 
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/payflowpro_gateway/forms/js/webitects_2_3step.js
===================================================================
--- 
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/payflowpro_gateway/forms/js/webitects_2_3step.js
 2011-11-04 15:28:14 UTC (rev 102000)
+++ 
branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/payflowpro_gateway/forms/js/webitects_2_3step.js
 2011-11-04 15:33:19 UTC (rev 102001)
@@ -174,8 +174,11 @@
        $( "#change-amount" ).show();
 }
 function validateAmount() {
+       
+       // TODO: THIS NEEDS TO BE REPLACED WITH KALDARI'S CURRENCIES
        var minimums = {
-               'USD' : 1
+               'USD' : 1,
+               'CAD' : 1
        };
        var error = true;
        var amount = $( 'input[name="amount"]' ).val(); // get the amount
@@ -189,8 +192,7 @@
        error = ( amount == null || isNaN( amount ) || amount.value <= 0 );
 
        // Check amount is at least the minimum
-       var currency_code = 'USD'; // hard-coded for these forms and tests
-       $( 'input[name="currency_code"]' ).val( currency_code );
+       var currency_code = $( 'input[name="currency_code"]' ).val();
        if ( typeof( minimums[currency_code] ) == 'undefined' ) {
                minimums[currency_code] = 1;
        }


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to