Commit 7b1dae5e authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(ui) ignore tag type when searching for validation error field

(cherry picked from commit b931f2f2)
parent 50fa2eb1
......@@ -149,7 +149,7 @@ function setFormData(parent,data) {
* @param validationErrors
*/
function handleFormValidation(parent,validationErrors) {
$( "#"+parent+" input,#"+parent+" select" ).each(function( index ) {
$( "#"+parent).find("*").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