luci-mod-network: parse ports without tag/pvid annotation as well
Fixes: 01eac366f6
("luci-mod-network: fix tagging/pvid state parsing in bridge-vlan ports")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
01eac366f6
commit
e57f8663af
1 changed files with 2 additions and 2 deletions
|
@ -272,9 +272,9 @@ var cbiTagValue = form.Value.extend({
|
|||
if (s[0] != this.port)
|
||||
continue;
|
||||
|
||||
var t = s[1].match(/t/) ? 't' : 'u';
|
||||
var t = /t/.test(s[1] || '') ? 't' : 'u';
|
||||
|
||||
return s[1].match(/\*/) ? [t, '*'] : [t];
|
||||
return /\*/.test(s[1] || '') ? [t, '*'] : [t];
|
||||
}
|
||||
|
||||
return ['-'];
|
||||
|
|
Loading…
Reference in a new issue