Commit 45a76711 authored by Ad Schellevis's avatar Ad Schellevis

remove unused code

parent 98d98ef8
......@@ -80,13 +80,10 @@ function setFormData(parent,data) {
function handleFormValidation(parent,validationErrors) {
$( "#"+parent+" input" ).each(function( index ) {
if (validationErrors != undefined && $(this).attr('id') in validationErrors) {
//$(this).parent().addClass("has-error");
$("*[for='" + $(this).attr('id') + "']").addClass("has-error");
//$(this).addClass("has-error");
$("span[for='" + $(this).attr('id') + "']").text(validationErrors[$(this).attr('id')]);
} else {
$("*[for='" + $(this).attr('id') + "']").removeClass("has-error");
//$(this).removeClass("has-error");
$("span[for='" + $(this).attr('id') + "']").text("");
}
});
......
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