From 595020f919253e56758539d0c7155d490f73bfe6 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 30 Oct 2010 00:42:58 +0000 Subject: [PATCH] libs/web: convert cbi widgets to new network model --- libs/web/luasrc/view/cbi/network_ifacelist.htm | 10 ++++++---- libs/web/luasrc/view/cbi/network_netlist.htm | 3 +-- 2 files changed, 7 insertions(+), 6 deletions(-) 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$ -%>