[FO] 일계부 수입 등록 valid
This commit is contained in:
@@ -177,6 +177,18 @@ var ajaxUtil = {
|
||||
infoBox.html('<li>' + oj.message + '</li>');
|
||||
}
|
||||
}
|
||||
|
||||
if (target.data('type') == 'select') {
|
||||
const component = target.parent().parent().closest('.select-group');
|
||||
if(component){
|
||||
component.addClass('select-invalid');
|
||||
let infoBox = component.find('.input-info');
|
||||
if (infoBox.length === 0) {
|
||||
infoBox = $('<ul class="input-info"></ul>').appendTo(component);
|
||||
}
|
||||
infoBox.html('<li>' + oj.message + '</li>');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if ($('.invalid-feedback').length === 0) {
|
||||
@@ -184,7 +196,6 @@ var ajaxUtil = {
|
||||
if (fieldErrors != null && fieldErrors.length > 0) {
|
||||
ajaxUtil._alert(fieldErrors[0].defaultMessage, '유효성 체크');
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
500:function(rstData){
|
||||
|
||||
Reference in New Issue
Block a user