summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-ddns/luasrc/model
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-14 14:51:06 +0000
committerSteven Barth <steven@midlink.org>2008-08-14 14:51:06 +0000
commit2c09564d762b692d970a531cca58eb52ba3807e7 (patch)
tree4d14c0d86e3cad8a6fcb9e5a39c104a0e80646e4 /applications/luci-ddns/luasrc/model
parent8c246e81746fac0fc0ff07266058d4ace5acdd55 (diff)
modules/admin-core: Added several cross-references to relevant configuration pages
Diffstat (limited to 'applications/luci-ddns/luasrc/model')
-rw-r--r--applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua8
1 files changed, 2 insertions, 6 deletions
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")