From e5eec4e0eff598810664cde6de28afedacbf61c5 Mon Sep 17 00:00:00 2001 From: Matthew Wire <mjw@mjwconsult.co.uk> Date: Sun, 31 May 2020 11:26:24 +0100 Subject: [PATCH] Change validator error class to match CiviCRM --- js/civicrm_stripe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/civicrm_stripe.js b/js/civicrm_stripe.js index 4cfb8f43..f43c68a1 100644 --- a/js/civicrm_stripe.js +++ b/js/civicrm_stripe.js @@ -688,7 +688,7 @@ CRM.$(function($) { $(this).attr('name', $(this).attr('name').split('[').shift()); }); var validator = $(form).validate(); - validator.settings.errorClass = 'error alert-danger'; + validator.settings.errorClass = 'crm-inline-error alert-danger'; validator.settings.ignore = '.select2-offscreen, [readonly], :hidden:not(.crm-select2)'; // Default email validator accepts test@example but on test@example.org is valid (https://jqueryvalidation.org/jQuery.validator.methods/) $.validator.methods.email = function( value, element ) { -- GitLab