From 020df619b150f76b6dce1cdc715269f47283f239 Mon Sep 17 00:00:00 2001 From: shy Date: Thu, 11 Apr 2024 23:59:49 +0800 Subject: [PATCH] add some --- plugin/story/form.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() })