# HG changeset patch # User bsw # Date 1455652959 -3600 # Node ID 76ceed10d65be080e80fd25f0084b47d71059528 # Parent 66d7a0ac9c9dfbfa0364a9f3c2877a610dee7135 Added correct use of attr arguments to ui.submit() diff -r 66d7a0ac9c9d -r 76ceed10d65b framework/env/ui/submit.lua --- a/framework/env/ui/submit.lua Tue Feb 09 20:09:34 2016 +0100 +++ b/framework/env/ui/submit.lua Tue Feb 16 21:02:39 2016 +0100 @@ -12,7 +12,7 @@ function ui.submit(args) if slot.get_state_table().form_readonly == false then local args = args or {} - local attr = table.new(attr) + local attr = table.new(args.attr) attr.type = "submit" attr.name = args.name attr.value = args.value or args.text