summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-10-21 20:22:42 +0000
committerSteven Barth <steven@midlink.org>2008-10-21 20:22:42 +0000
commitac3489049f8c7d755b05400ca298fdb93b07e80b (patch)
tree34638989f837e289fedc327660e4e6a489028a0b /libs/cbi
parentca0de5ffb349d4a9b54719d6818fbf38331a52cf (diff)
Added missing submitstate-function to tables pseudo map
Diffstat (limited to 'libs/cbi')
-rw-r--r--libs/cbi/luasrc/cbi.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua
index f54d5ac9a4..94ac964837 100644
--- a/libs/cbi/luasrc/cbi.lua
+++ b/libs/cbi/luasrc/cbi.lua
@@ -690,6 +690,10 @@ function Table.__init__(self, form, data, ...)
function datasource.get(self, section, option)
return data[section] and data[section][option]
end
+
+ function datasource.submitstate(self)
+ return luci.http.formvalue("cbi.submit")
+ end
function datasource.del(...)
return true