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