Skip to content

Commit

Permalink
Removed $(this).addClass('Validate_Required'); from Znuny.Form.Generi…
Browse files Browse the repository at this point in the history
…c.Add() to prevent unwanted validation on this field.

Znuny.Form.Generic.Add should only take the template and add this to wanted place.
No additional classes should be added.
  • Loading branch information
dennykorsukewitz committed Jun 30, 2023
1 parent 721bb69 commit 5ae3406
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions var/httpd/htdocs/js/Znuny.Form.Generic.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,6 @@ Znuny.Form.Generic = (function (TargetNS) {
$(this).parent().find('#' + ID + 'ServerError').attr('name', CounterID + 'ServerError');
}


$(this).addClass('Validate_Required');

// add event handler to remove button
if($(this).is('[data-formelement-remove]') && $(this).data('formelementRemove') == Param['formelementAdd']) {
var DestinationName = $(this).data('formelementRemoveDestinationName'),
Expand Down

0 comments on commit 5ae3406

Please sign in to comment.