Network settings: fixed not possible to add VLAN

This commit is contained in:
bergware
2020-01-24 18:11:25 +01:00
parent c2c4e1caa7
commit 2d9a4f3a00

View File

@@ -340,8 +340,8 @@ function addVLAN(port) {
while ($('#index-'+port+'-'+index).length) index++;
var template = $($('<div/>').loadTemplate($('#network-template-'+port)).html().replace(/INDEX/g,index));
var element = $('[id^="index-'+port+'-"]').last();
$(element).after(template).find('input').first().trigger('change');
selectProtocol($('form[name="'+$(element).parent().attr('name')+'"]'),port,index);
$(element).after(template);
$('form[name="'+$(element).parent().attr('name')+'"]').find('select').first().trigger('change');
}
function removeVLAN(element) {
var id = $(element).attr('id').split('-');