Fix: Enable Apply button when adding a VLAN

This commit is contained in:
Squidly271
2025-04-04 13:13:44 -04:00
committed by GitHub
parent 07c30adc13
commit 8b90d7353f

View File

@@ -468,6 +468,7 @@ function checkNetworkAccess(form) {
}
function addVLAN(port) {
$('input[value="<?=_("Apply")?>"],input[value="Apply"]').prop('disabled',false);
var index = 1;
while ($('#index-'+port+'-'+index).length) index++;
var template = $($('<div/>').loadTemplate($('#network-template-'+port)).html().replace(/INDEX/g,index));