Commit 25cd08a3 authored by Jos Schellevis's avatar Jos Schellevis

(ui) fix validation reporting on select box

parent 0224f86e
......@@ -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')]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment