jenkins-bot has submitted this change and it was merged.

Change subject: Allow clicking on payment method to submit form.
......................................................................


Allow clicking on payment method to submit form.

This allows user to retry the same card type when arriving via back button from 
the
Astropay form.

Bug: T130673
Change-Id: I02cc6ad9a28c803f3469ad43b778036f28beb90d
---
M astropay_gateway/astropay.js
1 file changed, 3 insertions(+), 2 deletions(-)

Approvals:
  Ejegg: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/astropay_gateway/astropay.js b/astropay_gateway/astropay.js
index 1ced6cd..9ad4093 100644
--- a/astropay_gateway/astropay.js
+++ b/astropay_gateway/astropay.js
@@ -6,8 +6,9 @@
                $( '#paymentContinue' ).show();
        }
 
-       // Submit on submethod selection if valid, otherwise show continute 
button.
-       $( 'input[name="payment_submethod"]' ).on( 'change', function() {
+       // Submit on submethod click if valid,
+       // otherwise show continue button.
+       $( 'input[name="payment_submethod"]' ).on( 'click', function() {
                if ( window.validate_form( form ) ) {
                        submitForm();
                } else {

-- 
To view, visit https://gerrit.wikimedia.org/r/282416
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I02cc6ad9a28c803f3469ad43b778036f28beb90d
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: XenoRyet <[email protected]>
Gerrit-Reviewer: AndyRussG <[email protected]>
Gerrit-Reviewer: Awight <[email protected]>
Gerrit-Reviewer: Cdentinger <[email protected]>
Gerrit-Reviewer: Ejegg <[email protected]>
Gerrit-Reviewer: Ssmith <[email protected]>
Gerrit-Reviewer: XenoRyet <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to