Ejegg has uploaded a new change for review. https://gerrit.wikimedia.org/r/163040
Change subject: Prevent double submission of GC bank transfer form ...................................................................... Prevent double submission of GC bank transfer form Change-Id: I56db3c662795967876b7e2577e195dc9a869bbcf --- M globalcollect_gateway/forms/js/webitects2nd.js 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface refs/changes/40/163040/1 diff --git a/globalcollect_gateway/forms/js/webitects2nd.js b/globalcollect_gateway/forms/js/webitects2nd.js index 29ab563..1e37ae8 100644 --- a/globalcollect_gateway/forms/js/webitects2nd.js +++ b/globalcollect_gateway/forms/js/webitects2nd.js @@ -55,7 +55,11 @@ } ); $( '#bt-continueBtn' ).live( 'click', function () { + if ( $( '#bt-continueBtn' ).hasClass( 'disabled' ) ) { + return false; + }; if ( validate_personal( document.paypalcontribution ) && validateAmount() ) { + $( '#bt-continueBtn' ).addClass( 'disabled' ); document.paypalcontribution.action = actionURL; document.paypalcontribution.submit(); } -- To view, visit https://gerrit.wikimedia.org/r/163040 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I56db3c662795967876b7e2577e195dc9a869bbcf Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/DonationInterface Gerrit-Branch: master Gerrit-Owner: Ejegg <eeggles...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits