From d27c8223b20a5e164c623f568d9cb5675e6b307a Mon Sep 17 00:00:00 2001 From: shy Date: Thu, 5 Sep 2024 20:03:01 +0800 Subject: [PATCH] add some --- lib/user.js | 2 +- plugin/table.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/user.js b/lib/user.js index 960e62f3..42de5d3e 100644 --- a/lib/user.js +++ b/lib/user.js @@ -222,7 +222,7 @@ Volcanos("user", { }, input: function(event, can, form, cb, button) { if (!form || form.length == 0) { return cb() } event = event||{}; var msg = can.request(event); event = event._event||event; var need = {} - var title = msg.Option(wiki.TITLE)||msg.Option(ctx.ACTION) + var title = can.user.trans(can, msg.Option(ctx.ACTION)) var ui = can.page.Append(can, document.body, [{view: [[html.INPUT, can.Conf(ctx.INDEX)||can.ConfIndex(), msg.Option(ctx.ACTION), msg.Option(mdb.TYPE), chat.FLOAT]], list: [ {view: html.OPTION, list: [{type: html.TABLE, list: can.core.List(form, function(item) { item = can.base.isString(item)? {type: html.TEXT, name: item}: item.length > 0? {type: html.SELECT, name: item[0], values: item.slice(1)}: item diff --git a/plugin/table.js b/plugin/table.js index 64d7905b..13704e40 100644 --- a/plugin/table.js +++ b/plugin/table.js @@ -21,6 +21,7 @@ Volcanos(chat.ONIMPORT, { msg.Option("_share_title", (value[title]||value.name||value.uid).slice(0, 6)), msg.Option("_share_content", value[content]||value.info) } }, itemcards: function(can, msg, cb, cbs) { + can.onimport.shareTitle && can.onimport.shareTitle(can, msg) if (msg.IsDetail()) { var value = msg.TableDetail(); msg.Show(can) can.page.Select(can, can._output, html.TR, function(target) { target.className.indexOf("_uid") > -1 && can.page.ClassList.add(can, target, "hide")