mirror of
https://github.com/openwrt/luci.git
synced 2025-12-23 14:34:35 +04:00
luci-base: tools.widget.NetworkSelect: disallow invalid network names
Fixes: #4523, #4573 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
@@ -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: '' +
|
||||
|
||||
Reference in New Issue
Block a user