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')),
|
||||
display_items: this.display_size || this.size || 3,
|
||||
dropdown_items: this.dropdown_size || this.size || 5,
|
||||
datatype: 'uciname',
|
||||
validate: L.bind(this.validate, this, section_id),
|
||||
create: !this.nocreate,
|
||||
create_markup: '' +
|
||||
|
|
Loading…
Reference in a new issue