vlan edit: Fix automatic field disabling
The regex are are created as literals (with // and not new RegExp). Therefore - The old Vlan_match value with double \\ has matched e.g. vlan\ddd instead of e.g. vlan123 and - the old VlanInterface_match value with double \\ has matched e.g. \www\X\dddd instead of e.g. vmbr0.1234 This fixes automatically disabling the fields vlan-raw-device and vlan-id (VLAN tag) in the VLAN edit window. Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
This commit is contained in:
parent
98edb91665
commit
7bff067a38
@ -854,7 +854,7 @@ utilities: {
|
||||
me.HostPort_match = new RegExp("^(" + IPV4_REGEXP + "|" + DnsName_REGEXP + ")(?::(\\d+))?$");
|
||||
me.HostPortBrackets_match = new RegExp("^\\[(" + IPV6_REGEXP + "|" + IPV4_REGEXP + "|" + DnsName_REGEXP + ")\\](?::(\\d+))?$");
|
||||
me.IP6_dotnotation_match = new RegExp("^(" + IPV6_REGEXP + ")(?:\\.(\\d+))?$");
|
||||
me.Vlan_match = /^vlan(\\d+)/;
|
||||
me.VlanInterface_match = /(\\w+)\\.(\\d+)/;
|
||||
me.Vlan_match = /^vlan(\d+)/;
|
||||
me.VlanInterface_match = /(\w+)\.(\d+)/;
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user