1
0
forked from x/ContextOS

mod email.size

This commit is contained in:
shaoying 2019-07-02 22:46:07 +08:00
parent e343f9c2e7
commit 33f1a41fc3
3 changed files with 4 additions and 4 deletions

View File

@ -4,5 +4,5 @@ var version = struct {
host string
self int
}{
"2019-07-02 21:24:03", "ZYB-20190522USI", 90,
"2019-07-02 22:32:30", "ZYB-20190522USI", 91,
}

View File

@ -210,7 +210,7 @@ var Index = &ctx.Context{Name: "ssh", Help: "集群中心",
"componet_tmpl": "componet", "componet_view": "Context", "componet_init": "",
"componet_type": "public", "componet_ctx": "aaa", "componet_cmd": "email",
"componet_args": []interface{}{}, "inputs": []interface{}{
map[string]interface{}{"label": "收件人", "type": "text", "name": "to", "view": "long"},
map[string]interface{}{"label": "收件人", "type": "text", "name": "to", "value": "shylinux@163.com","view": "long"},
map[string]interface{}{"label": "主题", "type": "text", "name": "title", "view": "long"},
map[string]interface{}{"type": "button", "value": "发送", "view": "clear"},
map[string]interface{}{"type": "textarea", "name": "content", "view": "clear"},

View File

@ -593,7 +593,7 @@ function Plugin(page, pane, field) {
event.preventDefault()
return true
})
event.key == "Enter" && plugin.Check(action)
item.type != "textarea" && event.key == "Enter" && plugin.Check(action)
}
var input = {type: "input", name: name, data: item}
@ -615,7 +615,7 @@ function Plugin(page, pane, field) {
case "textarea":
if (item.type == "textarea") {
input.type = "textarea"
item.style = "width:600px;height:300px"
item.style = "height:300px;"+"width:"+(option.clientWidth-20)+"px"
}
default: