libs/cbi: Added "Save & Apply" button to CBI forms
[oweals/luci.git] / libs / cbi / luasrc / cbi.lua
index 6aec2fbbbc9caae17cfd2750fb433d55ec797f2d..e6952899f6c9f2022d562ef72aa74571718211a7 100644 (file)
@@ -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