Skip to content
Snippets Groups Projects
Commit e5eec4e0 authored by mattwire's avatar mattwire
Browse files

Change validator error class to match CiviCRM

parent 112971c6
No related branches found
No related tags found
1 merge request!1146.4.1
...@@ -688,7 +688,7 @@ CRM.$(function($) { ...@@ -688,7 +688,7 @@ CRM.$(function($) {
$(this).attr('name', $(this).attr('name').split('[').shift()); $(this).attr('name', $(this).attr('name').split('[').shift());
}); });
var validator = $(form).validate(); 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)'; 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/) // 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 ) { $.validator.methods.email = function( value, element ) {
......
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