diff options
Diffstat (limited to 'libs')
-rw-r--r-- | libs/cbi/luasrc/cbi.lua | 3 | ||||
-rw-r--r-- | libs/cbi/luasrc/view/cbi/footer.htm | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua index 6aec2fbbbc..e6952899f6 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 diff --git a/libs/cbi/luasrc/view/cbi/footer.htm b/libs/cbi/luasrc/view/cbi/footer.htm index 4d21fd1684..9ff8de7fd1 100644 --- a/libs/cbi/luasrc/view/cbi/footer.htm +++ b/libs/cbi/luasrc/view/cbi/footer.htm @@ -14,6 +14,7 @@ $Id$ -%> <div> + <input type="submit" name="cbi.apply" value="<%:cbi_saveapply%>" /> <input type="submit" value="<%:save%>" /> <input type="reset" value="<%:reset%>" /> <script type="text/javascript">cbi_d_init();</script> |