Awight has uploaded a new change for review.
https://gerrit.wikimedia.org/r/182312
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/css/gc.css
M globalcollect_gateway/forms/js/gc.cc.js
2 files changed, 9 insertions(+), 0 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface
refs/changes/12/182312/1
diff --git a/globalcollect_gateway/forms/css/gc.css
b/globalcollect_gateway/forms/css/gc.css
index fb809e9..1abf8bb 100644
--- a/globalcollect_gateway/forms/css/gc.css
+++ b/globalcollect_gateway/forms/css/gc.css
@@ -283,6 +283,7 @@
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
+ cursor: pointer;
}
#cards li:hover { background: #9f9f9f; }
#cards li:active { background: #929292; }
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/182312
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: deployment
Gerrit-Owner: Awight <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits