Minor fixes
This commit is contained in:
parent
98f1d09a06
commit
6a51fbe673
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ $Id$
|
||||||
for i, key in pairs(self.keylist) do
|
for i, key in pairs(self.keylist) do
|
||||||
c = c + 1
|
c = c + 1
|
||||||
%>
|
%>
|
||||||
<input class="cbi-input-radio" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)" type="radio"<%= attr("id", cbid..c) .. attr("name", cbid) .. attr("value", key) .. ifattr(self:cfgvalue(section) == key, "checked", "checked") %> />
|
<input class="cbi-input-radio" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)" type="radio"<%= attr("id", cbid..c) .. attr("name", cbid) .. attr("value", key) .. ifattr((self:cfgvalue(section) or self.default) == key, "checked", "checked") %> />
|
||||||
<label<%= attr("for", cbid..c) %>><%=self.vallist[i]%></label>
|
<label<%= attr("for", cbid..c) %>><%=self.vallist[i]%></label>
|
||||||
<% if c == self.size then c = 0 %><% if self.orientation == "horizontal" then %> <% else %><br /><% end %>
|
<% if c == self.size then c = 0 %><% if self.orientation == "horizontal" then %> <% else %><br /><% end %>
|
||||||
<% end end %>
|
<% end end %>
|
||||||
|
|
|
@ -687,7 +687,7 @@ end
|
||||||
-- @param iface Wireless interface (optional)
|
-- @param iface Wireless interface (optional)
|
||||||
-- @return Table of available channels
|
-- @return Table of available channels
|
||||||
function wifi.channels(iface)
|
function wifi.channels(iface)
|
||||||
local t = iwinfo.type(iface)
|
local t = iwinfo.type(iface or "")
|
||||||
local cns
|
local cns
|
||||||
if t and iwinfo[t] then
|
if t and iwinfo[t] then
|
||||||
cns = iwinfo[t].freqlist(iface)
|
cns = iwinfo[t].freqlist(iface)
|
||||||
|
|
Loading…
Reference in a new issue