From: Jo-Philipp Wich Date: Sat, 30 Oct 2010 00:42:58 +0000 (+0000) Subject: libs/web: convert cbi widgets to new network model X-Git-Tag: 0.10.0~563 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=595020f919253e56758539d0c7155d490f73bfe6 libs/web: convert cbi widgets to new network model --- diff --git a/libs/web/luasrc/view/cbi/network_ifacelist.htm b/libs/web/luasrc/view/cbi/network_ifacelist.htm index 2f9821817..53a50e962 100644 --- a/libs/web/luasrc/view/cbi/network_ifacelist.htm +++ b/libs/web/luasrc/view/cbi/network_ifacelist.htm @@ -14,7 +14,6 @@ $Id$ <%+cbi/valueheader%> <%- - local utl = require "luci.util" local net = require "luci.model.network" local iface @@ -26,7 +25,7 @@ $Id$ if type(value) == "table" then value = table.concat(value, " ") end for value in value:gmatch("%S+") do checked[value] = true - end + end else local n = self.network and net:get_network(self.network) if n then @@ -39,13 +38,16 @@ $Id$ -%>