projects
/
oweals
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libs/cbi: Added "Save & Apply" button to CBI forms
[oweals/luci.git]
/
libs
/
cbi
/
luasrc
/
cbi.lua
diff --git
a/libs/cbi/luasrc/cbi.lua
b/libs/cbi/luasrc/cbi.lua
index 6aec2fbbbc9caae17cfd2750fb433d55ec797f2d..e6952899f6c9f2022d562ef72aa74571718211a7 100644
(file)
--- 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