luci-ntpc: Fixed option definitions
authorSteven Barth <steven@midlink.org>
Thu, 11 Sep 2008 17:25:44 +0000 (17:25 +0000)
committerSteven Barth <steven@midlink.org>
Thu, 11 Sep 2008 17:25:44 +0000 (17:25 +0000)
applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua
applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua

index 2b4e2c23d278aca066253842c87bcdce238bbe3c..06609e3a0bb6b22f17c0ed037918373de637a13e 100644 (file)
@@ -19,13 +19,13 @@ s.anonymous = true
 
 s:option(DummyValue, "_time", translate("ntpc_current")).value = os.date("%c")
 
-s:option(Value, "interval", translate("ntpc_interval"))
-s:option(Value, "count", translate("ntpc_count"), translate("ntpc_count_desc"))
+s:option(Value, "interval", translate("ntpc_interval")).rmempty = true
+s:option(Value, "count", translate("ntpc_count"), translate("ntpc_count_desc")).rmempty = true
 
 
 s2 = m:section(TypedSection, "ntpdrift", translate("ntpc_drift"))
 s2.anonymous = true
-s2:option(Value, "freq", translate("ntpc_drift_freq"))
+s2:option(Value, "freq", translate("ntpc_drift_freq")).rmempty = true
 
 
 s3 = m:section(TypedSection, "ntpserver", translate("ntpc_timeserver"))
index ecb098ab366417979f47fe6eff372ef8f302ab53..3493e03173d4f8e703c2eb50814aa2592f2bd655 100644 (file)
@@ -20,7 +20,7 @@ s.anonymous = true
 
 s:option(DummyValue, "_time", translate("ntpc_current")).value = os.date("%c")
 
-s:option(Value, "interval", translate("ntpc_interval"))
+s:option(Value, "interval", translate("ntpc_interval")).rmempty = true
 
 
 s3 = m:section(TypedSection, "ntpserver", translate("ntpc_timeserver"))