luci-base: tools.widget.NetworkSelect: disallow invalid network names
Fixes: #4523, #4573
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 2b99473f2c
)
This commit is contained in:
parent
abf69501ab
commit
69d668c465
1 changed files with 1 additions and 0 deletions
|
@ -393,6 +393,7 @@ var CBINetworkSelect = form.ListValue.extend({
|
||||||
select_placeholder: E('em', _('unspecified')),
|
select_placeholder: E('em', _('unspecified')),
|
||||||
display_items: this.display_size || this.size || 3,
|
display_items: this.display_size || this.size || 3,
|
||||||
dropdown_items: this.dropdown_size || this.size || 5,
|
dropdown_items: this.dropdown_size || this.size || 5,
|
||||||
|
datatype: 'uciname',
|
||||||
validate: L.bind(this.validate, this, section_id),
|
validate: L.bind(this.validate, this, section_id),
|
||||||
create: !this.nocreate,
|
create: !this.nocreate,
|
||||||
create_markup: '' +
|
create_markup: '' +
|
||||||
|
|
Loading…
Reference in a new issue