mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
opt some
This commit is contained in:
parent
4a5f41fe6f
commit
e7491633f3
@ -32,13 +32,9 @@ Volcanos(chat.ONFIGURE, {
|
|||||||
), target): can.onmotion.hidden(can, target.parentNode)
|
), target): can.onmotion.hidden(can, target.parentNode)
|
||||||
},
|
},
|
||||||
recent: function(can, target, zone, path) { var total = 0
|
recent: function(can, target, zone, path) { var total = 0
|
||||||
function show(msg, cb) {
|
function show(msg, cb) { var list = {}; msg.Table(function(item) { var path = item.path+item.file
|
||||||
var list = {}; msg.Table(function(item) { var path = item.path+item.file
|
if (!list[path] && total < 10) { zone._total(++total), can.page.Append(can, target, cb(item, path)) } list[path] = item
|
||||||
if (!list[path]) { zone._total(++total)
|
}) }
|
||||||
can.page.Append(can, target, cb(item, path))
|
|
||||||
} list[path] = item
|
|
||||||
})
|
|
||||||
}
|
|
||||||
can.runAction({}, code.FAVOR, ["_recent_file"], function(msg) {
|
can.runAction({}, code.FAVOR, ["_recent_file"], function(msg) {
|
||||||
show(msg, function(item, path) { return [{text: [path.split(ice.PS).slice(-2).join(ice.PS), html.DIV, html.ITEM], onclick: function(event) {
|
show(msg, function(item, path) { return [{text: [path.split(ice.PS).slice(-2).join(ice.PS), html.DIV, html.ITEM], onclick: function(event) {
|
||||||
can.onimport.tabview(can, item.path, item.file)
|
can.onimport.tabview(can, item.path, item.file)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user