summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi/luasrc
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-07-16 18:54:10 +0000
committerSteven Barth <steven@midlink.org>2008-07-16 18:54:10 +0000
commit8d1aff78b17d6f7437d776bdf53a6aa2112f31db (patch)
tree48784a8d48cc782ec63a5cc705f3779a7fae8a3d /libs/cbi/luasrc
parentea69b8dccc80c0b6c16225f2328834a7fd3be062 (diff)
modules/admin-mini: Added Wifi configuration
several smaller bugfixes and enhancements
Diffstat (limited to 'libs/cbi/luasrc')
-rw-r--r--libs/cbi/luasrc/cbi.lua11
1 files changed, 3 insertions, 8 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua
index b9383a3ec..6aec2fbbb 100644
--- a/libs/cbi/luasrc/cbi.lua
+++ b/libs/cbi/luasrc/cbi.lua
@@ -356,10 +356,9 @@ function NamedSection.parse(self)
return
end
else -- Create and apply default values
- if luci.http.formvalue("cbi.cns."..path) and self:create(s) then
- for k,v in pairs(self.children) do
- v:write(s, v.default)
- end
+ if luci.http.formvalue("cbi.cns."..path) then
+ self:create(s)
+ return
end
end
end
@@ -643,10 +642,6 @@ function DummyValue.parse(self)
end
-function DummyValue.render(self, s)
- luci.template.render(self.template, {self=self, section=s})
-end
-
--[[
Flag - A flag being enabled or disabled