diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-11-15 12:28:25 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-11-15 12:28:25 +0000 |
commit | 59e3062cafcef9c6c59603404576da146623f0fb (patch) | |
tree | 224a3253606f7cb738612592406843641c8dff94 /libs/web/luasrc | |
parent | 442438fe9d3952e17f257b7dcefa6fb7fd279afe (diff) |
libs/web: add support for exclude property to ifacelist and netlist widgets
Diffstat (limited to 'libs/web/luasrc')
-rw-r--r-- | libs/web/luasrc/view/cbi/network_ifacelist.htm | 2 | ||||
-rw-r--r-- | libs/web/luasrc/view/cbi/network_netlist.htm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/web/luasrc/view/cbi/network_ifacelist.htm b/libs/web/luasrc/view/cbi/network_ifacelist.htm index 5553da6ccf..c4d392e9ed 100644 --- a/libs/web/luasrc/view/cbi/network_ifacelist.htm +++ b/libs/web/luasrc/view/cbi/network_ifacelist.htm @@ -40,7 +40,7 @@ $Id$ <ul style="margin:0; list-style-type:none"> <% for _, iface in ipairs(ifaces) do local link = iface:adminlink() - if not self.nobridges or not iface:is_bridge() then %> + if (not self.nobridges or not iface:is_bridge()) and iface:name() ~= self.exclude then %> <li> <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") .. diff --git a/libs/web/luasrc/view/cbi/network_netlist.htm b/libs/web/luasrc/view/cbi/network_netlist.htm index 2d464cc878..46da88fd1a 100644 --- a/libs/web/luasrc/view/cbi/network_netlist.htm +++ b/libs/web/luasrc/view/cbi/network_netlist.htm @@ -33,7 +33,7 @@ $Id$ <ul style="margin:0; list-style-type:none; text-align:left"> <% for _, net in ipairs(networks) do - if net:name() ~= "loopback" then %> + if net:name() ~= "loopback" and net:name() ~= self.exclude then %> <li style="padding:0.25em 0"> <input class="cbi-input-radio" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)"<%= attr("type", self.widget or "radio") .. |