Commit be4f37f2 by Clinton Blackburn

Credit fixes

- Fixed receipt page button
- Fixed message on dashboard

ECOM-2492
parent 3182394c
......@@ -288,7 +288,11 @@ function completeOrder(event) { // jshint ignore:line
providerId = $(event).data("provider"),
$errorContainer = $("#error-container");
event.preventDefault();
try {
event.preventDefault();
} catch (err) {
// Ignore the error as not all event inputs have the preventDefault method.
}
analytics.track(
"edx.bi.credit.clicked_complete_credit",
......
......@@ -23,8 +23,8 @@
% if not credit_status["purchased"] and not credit_status["error"] :
<p class="message-copy credit-msg credit-eligibility-msg">
## Translators: provider_name is the name of a credit provider or university (e.g. State University)
${_("You are now eligible to purchase course credit from {provider_name} for this course. Click <strong>Get Credit</strong> to get started.").format(
provider_name=credit_status["provider_name"],
${_("You are now eligible to purchase course credit for this course. Click <strong>Get Credit</strong> to get started.").format(
provider_name=credit_status["provider_name"],
)}
</p>
<div class="purchase_credit">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment