From 06c0367ca00b69fdfa5dcf98d3d1bbcaebdc5bae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Chili=C5=84ski?= Date: Fri, 9 Sep 2022 17:30:18 +0200 Subject: [PATCH] bugfix: fixed validation errors on invisible elements (fixed node edit element selector) --- templates/default/node/nodeeditbox.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/default/node/nodeeditbox.html b/templates/default/node/nodeeditbox.html index d0a4a9fbe4..32b8d0e34a 100644 --- a/templates/default/node/nodeeditbox.html +++ b/templates/default/node/nodeeditbox.html @@ -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(); });