Skip to content

Commit

Permalink
bugfix: fixed validation errors on invisible elements (fixed node edi…
Browse files Browse the repository at this point in the history
…t element selector)
  • Loading branch information
chilek committed Sep 9, 2022
1 parent 691a145 commit 06c0367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/default/node/nodeeditbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@
$('#wholenetwork').change(function() {
var wholenetwork = $(this).prop('checked');
$('[name="nodeedit[ipaddr]"],[name="nodeedit[ipaddr_pub]"]').closest('tr').toggle(!wholenetwork);
$('[name="nodedata[ipaddr]"]').prop('required', !wholenetwork);
$('[name="nodeedit[ipaddr]"]').prop('required', !wholenetwork);
}).change();
});

Expand Down

0 comments on commit 06c0367

Please sign in to comment.