Added missing submitstate-function to tables pseudo map
authorSteven Barth <steven@midlink.org>
Tue, 21 Oct 2008 20:22:42 +0000 (20:22 +0000)
committerSteven Barth <steven@midlink.org>
Tue, 21 Oct 2008 20:22:42 +0000 (20:22 +0000)
libs/cbi/luasrc/cbi.lua

index f54d5ac9a42d3655d7874ce92c898250b02fd555..94ac9648376aada809be5f200e2f10bd0595c3fb 100644 (file)
@@ -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