summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-10-10 18:10:12 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-10-10 18:10:12 +0000
commit2337ee9206a31c26a7250f927ddab0d2a4735d88 (patch)
tree63035c79b95934c30352826778105a07190a70c2
parent6bc73f7af9f15b5ff77bfe599c767f1cbf169445 (diff)
libs/web: add network_netlist widget option to filter virtual networks
-rw-r--r--libs/web/luasrc/view/cbi/network_netlist.htm5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/web/luasrc/view/cbi/network_netlist.htm b/libs/web/luasrc/view/cbi/network_netlist.htm
index fab7883b2..37a206ad6 100644
--- a/libs/web/luasrc/view/cbi/network_netlist.htm
+++ b/libs/web/luasrc/view/cbi/network_netlist.htm
@@ -20,7 +20,10 @@
<ul style="margin:0; list-style-type:none; text-align:left">
<% for _, net in ipairs(networks) do
- if net:name() ~= "loopback" and net:name() ~= self.exclude then %>
+ if (net:name() ~= "loopback") and
+ (net:name() ~= self.exclude) and
+ (not self.novirtual or not net:is_virtual())
+ then %>
<li style="padding:0.25em 0">
<input class="cbi-input-<%=self.widget or "radio"%>" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)"<%=
attr("type", self.widget or "radio") ..