forked from x/volcanos
add some
This commit is contained in:
parent
e9a63583a4
commit
6fd4389ace
3
frame.js
3
frame.js
@ -214,7 +214,8 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) {
|
||||
limit = limit||html.ACTION_BUTTON; if (list.length > limit) {
|
||||
var rest = list.slice(limit-1); list = list.slice(0, limit-1), list.push({type: html.BUTTON, name: "more", onclick: function(event) {
|
||||
can.user.carte(event, can, {_trans: meta._trans||can._trans}, can.core.List(rest, function(item) { return item.name }), function(event, button) { run(event, button) })
|
||||
}}) }
|
||||
}})
|
||||
}
|
||||
can.core.List(list, function(item) {
|
||||
can.base.isUndefined(item) || can.onappend.input(can, item == ""? /* 1.空白 */ {type: html.BR}:
|
||||
can.base.isString(item)? /* 2.按键 */ {type: html.BUTTON, name: item, value: can.user.trans(can, item, meta._trans), onclick: function(event) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user