webmcp

changeset 442:76ceed10d65b

Added correct use of attr arguments to ui.submit()
author bsw
date Tue Feb 16 21:02:39 2016 +0100 (2016-02-16)
parents 66d7a0ac9c9d
children 2131f02763fe
files framework/env/ui/submit.lua
line diff
     1.1 --- a/framework/env/ui/submit.lua	Tue Feb 09 20:09:34 2016 +0100
     1.2 +++ b/framework/env/ui/submit.lua	Tue Feb 16 21:02:39 2016 +0100
     1.3 @@ -12,7 +12,7 @@
     1.4  function ui.submit(args)
     1.5    if slot.get_state_table().form_readonly == false then
     1.6      local args = args or {}
     1.7 -    local attr = table.new(attr)
     1.8 +    local attr = table.new(args.attr)
     1.9      attr.type  = "submit"
    1.10      attr.name  = args.name
    1.11      attr.value = args.value or args.text

Impressum / About Us