forked from x/volcanos
opt some
This commit is contained in:
parent
09ab86a009
commit
da1c6269dd
@ -254,7 +254,7 @@ Volcanos(chat.ONACTION, {help: "控件交互", list: [nfs.SAVE, code.COMPILE, co
|
||||
compile: function(event, can, button) { var toast = can.user.toastProcess(can, "编译中...")
|
||||
can.runAction(can.request(event), button, [], function(msg) { toast.close()
|
||||
if (msg.Length() == 0) { var toast1 = can.user.toastProcess(can, "重启中...")
|
||||
can.onmotion.delay(can, function() { toast1.close(), can.onaction[cli.SHOW]({}, can) }, 3000)
|
||||
can.onmotion.delay(can, function() { toast1.close(), can.onaction[cli.SHOW]({}, can) }, 5000)
|
||||
} else { can.ui.search._show(msg) }
|
||||
|
||||
})
|
||||
@ -273,7 +273,7 @@ Volcanos(chat.ONACTION, {help: "控件交互", list: [nfs.SAVE, code.COMPILE, co
|
||||
can.onaction._runs(can.request(event, {file: (can.base.trimSuffix(can.Option(nfs.FILE), can.base.Ext(can.Option(nfs.FILE)))+nfs.ZML).split("/").pop()}), can, button)
|
||||
},
|
||||
dream: function(event, can, button) {
|
||||
can.onaction._runs(can.request(event, {name: can.base.trimSuffix(can.Option(nfs.FILE), ice.PT+can.base.Ext(can.Option(nfs.FILE)))}), can, button, function(msg) { can.ui.dreams.refresh()
|
||||
can.onaction._runs(can.request(event, {name: can.base.trimSuffix(can.Option(nfs.FILE).split(ice.PS).pop(), ice.PT+can.base.Ext(can.Option(nfs.FILE)))}), can, button, function(msg) { can.ui.dreams.refresh()
|
||||
can.onimport.tabview(can, can.Option(nfs.PATH), msg.Option(mdb.NAME), web.DREAM) // 显示空间
|
||||
can.user.toastSuccess(can)
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user