projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c70edf0
)
libs/cbi: fix some logic errors in firewall zone picker widget
author
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 9 Nov 2009 00:32:36 +0000
(
00:32
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 9 Nov 2009 00:32:36 +0000
(
00:32
+0000)
libs/cbi/luasrc/view/cbi/firewall_zonelist.htm
patch
|
blob
|
history
diff --git
a/libs/cbi/luasrc/view/cbi/firewall_zonelist.htm
b/libs/cbi/luasrc/view/cbi/firewall_zonelist.htm
index dcc14fb2dce68eae6cb346bd537d4d608a340cd7..d7cea4edbe6a1e226d9180ff2153d6146e76798c 100644
(file)
--- a/
libs/cbi/luasrc/view/cbi/firewall_zonelist.htm
+++ b/
libs/cbi/luasrc/view/cbi/firewall_zonelist.htm
@@
-51,9
+51,8
@@
$Id$
local zempty = true
for _, net in ipairs(zone:get_networks()) do
net = nwm:get_network(net)
- zempty = false
if net then
-
local nempty = tru
e
+
zempty = fals
e
%>
<%- if net:name() == self.network then -%>
@@
-62,6
+61,7
@@
$Id$
<span style="background-color:#FFFFFF; border:1px solid #CCCCCC; padding:2px"><%=net:name()%>:
<%- end -%>
<%
+ local nempty = true
for _, iface in ipairs(net and net:get_interfaces() or {}) do
if not iface:is_bridgeport() then
nempty = false