luci-mod-network: remove uciname validation from wireless interface
Remove the 'uciname' validation rule, as it prevents using '-' that
is a valid character.
Fixes: 0c1be9ae5
luci-mod-network: Add length restriction to wireless
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
This commit is contained in:
parent
eda3c14e9f
commit
8673aef8db
1 changed files with 1 additions and 1 deletions
|
@ -1159,7 +1159,7 @@ return view.extend({
|
||||||
|
|
||||||
o = ss.taboption('advanced', form.Value, 'ifname', _('Interface name'), _('Override default interface name'));
|
o = ss.taboption('advanced', form.Value, 'ifname', _('Interface name'), _('Override default interface name'));
|
||||||
o.optional = true;
|
o.optional = true;
|
||||||
o.datatype = 'and(uciname,maxlength(15))';
|
o.datatype = 'maxlength(15)';
|
||||||
o.placeholder = radioNet.getIfname();
|
o.placeholder = radioNet.getIfname();
|
||||||
if (/^radio\d+\.network/.test(o.placeholder))
|
if (/^radio\d+\.network/.test(o.placeholder))
|
||||||
o.placeholder = '';
|
o.placeholder = '';
|
||||||
|
|
Loading…
Reference in a new issue