Skip to content
Snippets Groups Projects
Unverified Commit 94378cb0 authored by julianajlk's avatar julianajlk Committed by GitHub
Browse files

feat: add JS for upgrade button redirect in Track Selection (#28805)

REV-2387
parent 5487ff59
No related branches found
Tags release-2021-09-20-11.22
No related merge requests found
......@@ -20,7 +20,6 @@
background-color: white;
border: 1px solid #707070;
position: relative;
float: right;
}
.track-selection-certificate {
......@@ -240,6 +239,10 @@
.price-display {
font-size: 14px;
}
.choice-bullets {
padding: 0 2rem 1rem 1rem;
}
}
@media (min-width: map-get($grid-breakpoints, 'md')) {
......
......@@ -16,6 +16,17 @@ from openedx.core.djangolib.js_utils import js_escaped_string
<%block name="js_extra">
<script type="text/javascript">
// upgrade button re-direct to ecommerce basket (which re-directs to Payment MFE)
% if use_ecommerce_payment_flow:
$(function(){
$('button[name=verified_mode]').click(function(e){
e.preventDefault();
window.location.href = '${ecommerce_payment_page | n, js_escaped_string}?sku=' +
encodeURIComponent('${sku | n, js_escaped_string}');
});
});
% endif
// popover icon toggle
$(function(){
$('body').click(function (e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment