From: Steven Barth Date: Thu, 14 Aug 2008 16:48:17 +0000 (+0000) Subject: applications/luci-ntpc: Refreshed CBI model to work with latest UCI scheme X-Git-Tag: 0.8.0~433 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b4d9e2867fdb9e95e777be189d907768466452d7;p=oweals%2Fluci.git applications/luci-ntpc: Refreshed CBI model to work with latest UCI scheme --- diff --git a/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua b/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua index cc4698384..d8b35c6e1 100644 --- a/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua +++ b/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua @@ -12,15 +12,11 @@ You may obtain a copy of the License at $Id$ ]]-- -require("luci.tools.webadmin") m = Map("ntpclient", translate("ntpc"), translate("ntpc_desc")) s = m:section(TypedSection, "ntpclient", translate("general")) s.anonymous = true -iface = s:option(ListValue, "iface", translate("ntpc_iface"), translate("ntpc_iface_desc")) -luci.tools.webadmin.cbi_add_networks(iface) - s:option(Value, "interval", translate("ntpc_interval")) s:option(Value, "count", translate("ntpc_count"), translate("ntpc_count_desc"))