mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
MVC - handleFormValidation : improve item match (#5428)
This commit is contained in:
parent
26df508f07
commit
cece0d28de
@ -178,7 +178,7 @@ function setFormData(parent,data) {
|
||||
* @param validationErrors
|
||||
*/
|
||||
function handleFormValidation(parent,validationErrors) {
|
||||
$( "#"+parent).find("*").each(function() {
|
||||
$( "#"+parent).find("[id]").each(function() {
|
||||
if (validationErrors !== undefined && $(this).prop('id') in validationErrors) {
|
||||
$("*[id*='" + $(this).prop('id') + "']").addClass("has-error");
|
||||
$("span[id='help_block_" + $(this).prop('id') + "']").text(validationErrors[$(this).prop('id')]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user