Awight has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/180330

Change subject: Make the entire li around CC type buttons clickable
......................................................................

Make the entire li around CC type buttons clickable

Change-Id: I8e8ec32b7c8126679abd68bb50069ff21eda4178
---
M globalcollect_gateway/forms/js/gc.cc.js
1 file changed, 8 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface 
refs/changes/30/180330/1

diff --git a/globalcollect_gateway/forms/js/gc.cc.js 
b/globalcollect_gateway/forms/js/gc.cc.js
index 71c15d4..fd57bd8 100644
--- a/globalcollect_gateway/forms/js/gc.cc.js
+++ b/globalcollect_gateway/forms/js/gc.cc.js
@@ -69,4 +69,12 @@
                        $( '#paymentContinue' ).show();
                }
        } );
+
+       $( '#cards li' ).click( function (event) {
+               $( this ).find( 'input' ).click();
+       } );
+
+       $( '#cards li input' ).click( function (event) {
+               event.stopPropagation();
+       } );
 } );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8e8ec32b7c8126679abd68bb50069ff21eda4178
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Awight <[email protected]>

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

Reply via email to