Skip to content
Snippets Groups Projects
Commit d5d914ee authored by laryn's avatar laryn
Browse files

Scroll to top if response.error

parent a13db653
Branches
Tags
No related merge requests found
......@@ -90,6 +90,7 @@
// Response from Stripe.createToken.
function stripeResponseHandler(status, response) {
if (response.error) {
cj('html, body').animate({ scrollTop: 0 }, 300);
// Show the errors on the form.
if (cj(".messages.crm-error.stripe-message").length > 0) {
cj(".messages.crm-error.stripe-message").slideUp();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment