df438e8b5affda6c32a56c8b2418b2b6a835e2c8
[project/luci.git] / modules / niu / luasrc / model / cbi / niu / system / general.lua
1 local cursor = require "luci.model.uci".cursor()
2 local d = Delegator()
3 d.allow_finish = true
4 d.allow_back = true
5 d.allow_cancel = true
6
7 d:add("general1", load("niu/system/general1"))
8
9 function d.on_cancel()
10 cursor:revert("system")
11 end
12
13 function d.on_done()
14 cursor:commit("system")
15 end
16
17 return d