mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
opt some
This commit is contained in:
parent
ec57c4ee10
commit
89093eb5bc
@ -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: [
|
||||
|
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user