summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi/luasrc/cbi.lua
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-07-29 14:01:19 +0000
committerSteven Barth <steven@midlink.org>2008-07-29 14:01:19 +0000
commit43ffb3aacbe78fd7ed19217c23438f14acaa27f5 (patch)
tree47c2f458dc599b1186e264dc1b8197774fddbbb5 /libs/cbi/luasrc/cbi.lua
parent1f3700085c59ea3b3ed162277948771d41a57ccc (diff)
libs/cbi: Added "Save & Apply" button to CBI forms
Diffstat (limited to 'libs/cbi/luasrc/cbi.lua')
-rw-r--r--libs/cbi/luasrc/cbi.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua
index 6aec2fbbb..e6952899f 100644
--- a/libs/cbi/luasrc/cbi.lua
+++ b/libs/cbi/luasrc/cbi.lua
@@ -154,6 +154,9 @@ end
function Map.parse(self, ...)
Node.parse(self, ...)
uci.save(self.config)
+ if luci.http.formvalue("cbi.apply") then
+ uci.commit(self.config)
+ end
uci.unload(self.config)
end