git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
0c7a335
)
luci-base: tools.widget.NetworkSelect: disallow invalid network names
author
Jo-Philipp Wich
<redacted>
Fri, 6 Nov 2020 23:40:31 +0000
(
00:40
+0100)
committer
Jo-Philipp Wich
<redacted>
Fri, 6 Nov 2020 23:41:56 +0000
(
00:41
+0100)
Fixes: #4523, #4573
Signed-off-by: Jo-Philipp Wich <redacted>
modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
patch
|
blob
|
history
diff --git
a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
index 1de8a08bc3b5ecc160684cac2652c37038173f9e..b97696c1b8e61cbe623b72a57aeb1ceed5c280c1 100644
(file)
--- a/
modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
+++ b/
modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
@@
-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: '' +
git clone https://git.99rst.org/PROJECT