mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 08:48:06 +08:00
add some
This commit is contained in:
parent
f893b961a6
commit
b06d344082
@ -478,7 +478,7 @@ body>div.upload div.status div.size { text-align:center; }
|
||||
body.width1>div.input { margin:10px; width:calc(100% - 20px); left:0 !important; }
|
||||
body.width1>div.input table { width:100%; }
|
||||
body.width1>div.input td { padding:0; }
|
||||
body.width1 div.input.float table input { width:100% !important; }
|
||||
body.width1 div.input.float table input[type=text] { width:100% !important; }
|
||||
/* display */
|
||||
fieldset:not(.Action) { position:relative; }
|
||||
fieldset>form.option:not(.hide) { float:left; display:contents; }
|
||||
|
@ -269,8 +269,12 @@ Volcanos("user", {
|
||||
], onclick: function(event) { if (!can.page.tagis(event.target, html.INPUT, html.TEXTAREA)) { can.onmotion.clearCarte(can) } }}])
|
||||
var action = can.onappend._action(can, button||[html.SUBMIT, html.CANCEL], ui.action, {
|
||||
_trans: {submit: msg.Option(web.SUBMIT)},
|
||||
focus: function() { can.onmotion.focus(can, can.page.Select(can, ui._target, html.INPUT_ARGS)[0]) },
|
||||
focus: function(key) { can.onmotion.focus(can, can.page.Select(can, ui._target, key? "input.args[name="+key+"]": html.INPUT_ARGS)[0]) },
|
||||
Option: function(key, value, hidden) {
|
||||
if (!key) { var data = kit.Dict(msg.OptionSimple())
|
||||
can.page.Select(can, ui._target, "input.args", function(target) { data[target.name] = target.value })
|
||||
return data
|
||||
}
|
||||
var target = can.page.Select(can, ui._target, "input.args[name="+key+"]")[0]
|
||||
if (!target) { return }
|
||||
if (value != undefined) { target.value = target.value||value }
|
||||
|
Loading…
x
Reference in New Issue
Block a user