var validator = $(this).validate();
var that = this;
validator.settings = $.extend({}, validator.settings, CRM.validate._defaults, CRM.validate.params);
+ // Call our custom validation handler.
+ $(validator.currentForm).on("invalid-form.validate", validator.settings.invalidHandler );
// Call any post-initialization callbacks
if (CRM.validate.functions && CRM.validate.functions.length) {
$.each(CRM.validate.functions, function(i, func) {
// but there will be no overall message. Currently the container is only available on backoffice pages.
if ($('#crm-notification-container').length) {
$.each(validator.errorList, function(k, error) {
+ $(error.element).parents('.crm-custom-accordion.collapsed').crmAccordionToggle();
$(error.element).crmError(error.message);
});
}