diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-09-20 22:11:41 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-09-20 22:11:41 +0000 |
commit | dc253f4af41caab2430fe1fbc69ff092d6fb2d04 (patch) | |
tree | ecb6503f8cd6d4ec0fa731c5946f2e58ed2d0deb /libs/cbi | |
parent | 71adba8a50570257892b60dd9872191c54dd7041 (diff) |
* luci/libs/cbi: implement commit hooks in cbi maps
* luci/moules/admin-mini: reload global config namespace when change theme or language (for persistent environments)
* luci/moules/admin-full: reload global config namespace when change theme or language (for persistent environments)
Diffstat (limited to 'libs/cbi')
-rw-r--r-- | libs/cbi/luasrc/cbi.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua index d2de8685b..97c453cf2 100644 --- a/libs/cbi/luasrc/cbi.lua +++ b/libs/cbi/luasrc/cbi.lua @@ -288,6 +288,9 @@ function Map.parse(self) for i, config in ipairs(self.parsechain) do self.uci:unload(config) end + if type(self.commit_handler) == "function" then + self:commit_handler() + end end end |