mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 08:48:06 +08:00
add some
This commit is contained in:
parent
994afcf03b
commit
05049d36a8
2
frame.js
2
frame.js
@ -452,7 +452,7 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) {
|
|||||||
}}])[item.name]; return _input
|
}}])[item.name]; return _input
|
||||||
},
|
},
|
||||||
icons: function(can, target, name, cb) {
|
icons: function(can, target, name, cb) {
|
||||||
var _icon = can.Conf("feature._icons."+name) || icon[name] || name
|
var _icon = can.Conf("feature._icons."+name) || can.core.Value(can.onaction, ["_trans.icons", name]) || icon[name] || name
|
||||||
if (!_icon) { return } can.onappend.style(can, "icons", target.parentNode)
|
if (!_icon) { return } can.onappend.style(can, "icons", target.parentNode)
|
||||||
can.page.Append(can, target.parentNode, [{icon: _icon, title: can.user.trans(can, name), onclick: can.base.isFunc(cb)? cb: target.onclick||function(event) { can.Update(event, [ctx.ACTION, cb||name]) }}])
|
can.page.Append(can, target.parentNode, [{icon: _icon, title: can.user.trans(can, name), onclick: can.base.isFunc(cb)? cb: target.onclick||function(event) { can.Update(event, [ctx.ACTION, cb||name]) }}])
|
||||||
},
|
},
|
||||||
|
@ -305,7 +305,7 @@ Volcanos("page", {
|
|||||||
tagClass: function(target) { return target.tagName.toLowerCase()+(target.className? nfs.PT+target.className.replaceAll(lex.SP, nfs.PT): "") },
|
tagClass: function(target) { return target.tagName.toLowerCase()+(target.className? nfs.PT+target.className.replaceAll(lex.SP, nfs.PT): "") },
|
||||||
isDisplay: function(target) { return target && target.style.display != html.NONE && target.className.indexOf(html.HIDE) == -1 },
|
isDisplay: function(target) { return target && target.style.display != html.NONE && target.className.indexOf(html.HIDE) == -1 },
|
||||||
isIconInput: function(can, name) {
|
isIconInput: function(can, name) {
|
||||||
return can.base.isIn(name, mdb.CREATE, mdb.INSERT, mdb.PRUNES, mdb.PRUNE, ice.HELP, cli.START, cli.CLOSE, web.REFRESH) || icon[name] || can.Conf("feature._icons."+name)
|
return can.base.isIn(name, mdb.CREATE, mdb.INSERT, mdb.PRUNES, mdb.PRUNE, ice.HELP, cli.START, cli.CLOSE, web.REFRESH) || icon[name] || can.Conf("feature._icons."+name) || can.core.Value(can.onaction, ["_trans.icons", name])
|
||||||
},
|
},
|
||||||
editable: function(can, item, ok) { item.setAttribute("contenteditable", ok) },
|
editable: function(can, item, ok) { item.setAttribute("contenteditable", ok) },
|
||||||
draggable: function(can, item, ok) { item.setAttribute("draggable", ok) },
|
draggable: function(can, item, ok) { item.setAttribute("draggable", ok) },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user