From 765290575d68f6cc1e6a648e73ba8f674f5f20d5 Mon Sep 17 00:00:00 2001 From: sagescrub Date: Wed, 23 Jan 2019 23:32:41 -0800 Subject: [PATCH] fix: vendor.js validation mark invalid fields fix: vendor.js validation mark invalid fields Client side validation was not highlighting invalid fields. Particularly the store profile settings page was not highlighting invalid fields. --- assets/js/dokan.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/dokan.js b/assets/js/dokan.js index 116666cd52..631399c106 100644 --- a/assets/js/dokan.js +++ b/assets/js/dokan.js @@ -1521,12 +1521,12 @@ jQuery(function($) { $.validator.setDefaults({ ignore: ":hidden" }); var validatorError = function(error, element) { - var form_group = $(element).closest('.form-group'); + var form_group = $(element).closest('.dokan-form-group'); form_group.addClass('has-error').append(error); }; var validatorSuccess = function(label, element) { - $(element).closest('.form-group').removeClass('has-error'); + $(element).closest('.dokan-form-group').removeClass('has-error'); }; var api = wp.customize;