1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
shaoying 2020-03-25 22:32:23 +08:00
parent ec57c4ee10
commit 89093eb5bc
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ Volcanos("user", {help: "用户模块",
confirm: function(text) {return confirm(JSON.stringify(text))},
prompt: function(text, cb, def, silent) {(text = silent? def: prompt(text, def||"")) != undefined && typeof cb == "function" && cb(text); return text},
reload: function(force) {(force || confirm("重新加载页面?")) && location.reload()},
title: function(text) {document.title = text},
title: function(text) {return text && (document.title = text), document.title},
input: function(event, can, form, cb) {
var view = can.page.Append(can, document.body, [{view: ["input", "fieldset"], style: {left: event.clientX+"px", top: event.clientY+"px"}, list: [

View File

@ -1,7 +1,7 @@
Volcanos("onimport", {help: "导入数据", list: [],
_init: function(can, conf, output, action, option, field) {
can.user.login = function(cb) {
can.misc.WSS(can, "", {node: "active"}, function(event, msg, cmd, arg) {
can.misc.WSS(can, "", {node: "active", user: can.user.title()}, function(event, msg, cmd, arg) {
switch (cmd) {
case "space":
can._share = arg[1]