fix style for lua luci
This commit is contained in:
parent
52b5d08c86
commit
d458bf17dc
@ -9,10 +9,10 @@ ttl.default = 64
|
|||||||
ttl.datatype = "uinteger"
|
ttl.datatype = "uinteger"
|
||||||
|
|
||||||
o = s:option(Value, "ifname", translate("Interface"))
|
o = s:option(Value, "ifname", translate("Interface"))
|
||||||
o.rmempty = ture
|
uci:foreach("network", "interface", function(s)
|
||||||
o.template = "cbi/network_netlist"
|
if s[".name"] ~= "loopback" and s[".name"] ~= "lan" then
|
||||||
o.widget = "optional"
|
o:value(s[".name"])
|
||||||
o.nocreate = true
|
end
|
||||||
o.unspecified = true
|
end)
|
||||||
|
|
||||||
return m
|
return m
|
||||||
|
Loading…
x
Reference in New Issue
Block a user