summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-ntpc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-03-27 02:41:00 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-03-27 02:41:00 +0000
commit96381bf0d870cd8e17034dffd926364c835c7f27 (patch)
treef32b5cdc4ca2caafe136f6e22c89bb9f0debfd99 /applications/luci-ntpc
parenteaaaa39c1733540c1bc19b0c1fd9f1c5083aaa75 (diff)
applications/luci-ntpc: cbi fixes
Diffstat (limited to 'applications/luci-ntpc')
-rw-r--r--applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua5
-rw-r--r--applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua3
2 files changed, 5 insertions, 3 deletions
diff --git a/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua b/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua
index 642082fba..9480f6fe7 100644
--- a/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua
+++ b/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua
@@ -16,6 +16,7 @@ m = Map("ntpclient", translate("Time Synchronisation"), translate("Synchronizes
s = m:section(TypedSection, "ntpclient", translate("General"))
s.anonymous = true
+s.addremove = false
s:option(DummyValue, "_time", translate("ntpc_current")).value = os.date("%c")
@@ -25,9 +26,9 @@ s:option(Value, "count", translate("Count of Time Measurements"), translate("emp
s2 = m:section(TypedSection, "ntpdrift", translate("Clock Adjustment"))
s2.anonymous = true
+s2.addremove = false
s2:option(Value, "freq", translate("Offset Frequency")).rmempty = true
-
s3 = m:section(TypedSection, "ntpserver", translate("Time Server"))
s3.anonymous = true
s3.addremove = true
@@ -36,4 +37,4 @@ s3.template = "cbi/tblsection"
s3:option(Value, "hostname", translate("Hostname"))
s3:option(Value, "port", translate("Port")).rmempty = true
-return m \ No newline at end of file
+return m
diff --git a/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua b/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua
index bd04cc6a4..a1311657a 100644
--- a/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua
+++ b/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua
@@ -17,6 +17,7 @@ m = Map("ntpclient", translate("Time Synchronisation"), translate("Synchronizes
s = m:section(TypedSection, "ntpclient", translate("General"))
s.anonymous = true
+s.addremove = false
s:option(DummyValue, "_time", translate("ntpc_current")).value = os.date("%c")
@@ -31,4 +32,4 @@ s3.template = "cbi/tblsection"
s3:option(Value, "hostname", translate("Hostname"))
s3:option(Value, "port", translate("Port")).rmempty = true
-return m \ No newline at end of file
+return m