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))},
|
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},
|
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()},
|
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) {
|
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: [
|
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: [],
|
Volcanos("onimport", {help: "导入数据", list: [],
|
||||||
_init: function(can, conf, output, action, option, field) {
|
_init: function(can, conf, output, action, option, field) {
|
||||||
can.user.login = function(cb) {
|
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) {
|
switch (cmd) {
|
||||||
case "space":
|
case "space":
|
||||||
can._share = arg[1]
|
can._share = arg[1]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user