From 2c09564d762b692d970a531cca58eb52ba3807e7 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 14 Aug 2008 14:51:06 +0000 Subject: modules/admin-core: Added several cross-references to relevant configuration pages --- applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'applications/luci-ddns/luasrc/model') diff --git a/applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua b/applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua index 1c88579b3..a8ba0c73c 100644 --- a/applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua +++ b/applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua @@ -12,6 +12,7 @@ You may obtain a copy of the License at $Id$ ]]-- +require("luci.tools.webadmin") m = Map("ddns", translate("ddns"), translate("ddns_desc")) s = m:section(TypedSection, "service", "") @@ -40,12 +41,7 @@ src:value("web", "URL") iface = s:option(ListValue, "ip_network", translate("network")) iface:depends("ip_source", "network") iface.rmempty = true -luci.model.uci.foreach("network", "interface", - function (section) - if section[".name"] ~= "loopback" then - iface:value(section[".name"]) - end - end) +luci.tools.webadmin.cbi_add_networks(iface) iface = s:option(ListValue, "ip_interface", translate("interface")) iface:depends("ip_source", "interface") -- cgit v1.2.3