diff --git a/plugin/story/form.js b/plugin/story/form.js index 421afd36..986d4277 100644 --- a/plugin/story/form.js +++ b/plugin/story/form.js @@ -5,7 +5,9 @@ Volcanos(chat.ONIMPORT, { return {view: [[html.ITEM, item.type]], list: [item.type != html.BUTTON && {text: [can.user.trans(can, item.name, item._trans, html.INPUT), "", mdb.NAME]}, item.need == "must" && {text: ["*", "", "need"]}], _init: function(target) { item.type == html.BUTTON && (item.onclick = function(event) { var args = [] can.core.Item(can.page.SelectArgs(can, can._output)[0], function(key, value) { args.push(key, value) }) - can.Update(can.request(event, {_handle: ice.TRUE}), [ctx.ACTION, item.name].concat(args)) + can.Update(can.request(event, {_handle: ice.TRUE}), [ctx.ACTION, item.name].concat(args), function() { + can.Update() + }) }), can.onappend.input(can, item, "", target) }, onclick: function(event) { can.page.Select(can, event.currentTarget, html.INPUT, function(target) { target.focus() })