Comparison

util/adhoc.lua @ 7912:2c204ba8e52e

util.adhoc: Pass command data to initial_data callback in order to allow loading per-user settings
author Kim Alvefur <zash@zash.se>
date Wed, 22 Feb 2017 22:56:28 +0100
parent 5513:755f705f126a
child 8382:e5d00bf4a4d5
comparison
equal deleted inserted replaced
7911:e528d848a185 7912:2c204ba8e52e
20 end 20 end
21 local fields, err = form:data(data.form); 21 local fields, err = form:data(data.form);
22 return result_handler(fields, err, data); 22 return result_handler(fields, err, data);
23 else 23 else
24 return { status = "executing", actions = {"next", "complete", default = "complete"}, 24 return { status = "executing", actions = {"next", "complete", default = "complete"},
25 form = { layout = form, values = initial_data() } }, "executing"; 25 form = { layout = form, values = initial_data(data) } }, "executing";
26 end 26 end
27 end 27 end
28 end 28 end
29 29
30 return { new_simple_form = new_simple_form, 30 return { new_simple_form = new_simple_form,