mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
(ui) fix validation reporting on select box
This commit is contained in:
parent
0224f86ef2
commit
25cd08a320
@ -144,7 +144,7 @@ function setFormData(parent,data) {
|
||||
* @param validationErrors
|
||||
*/
|
||||
function handleFormValidation(parent,validationErrors) {
|
||||
$( "#"+parent+" input" ).each(function( index ) {
|
||||
$( "#"+parent+" input,#"+parent+" select" ).each(function( index ) {
|
||||
if (validationErrors != undefined && $(this).prop('id') in validationErrors) {
|
||||
$("*[for='" + $(this).prop('id') + "']").addClass("has-error");
|
||||
$("span[for='" + $(this).prop('id') + "']").text(validationErrors[$(this).prop('id')]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user