(ui) fix validation reporting on select box

This commit is contained in:
Jos Schellevis 2015-06-03 17:44:22 +02:00
parent 0224f86ef2
commit 25cd08a320

View File

@ -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')]);