forked from x/volcanos
opt some
This commit is contained in:
parent
e1b94b5efb
commit
dc7c8bf577
@ -4,4 +4,4 @@ fieldset.vimer>div.output input.current {
|
||||
height:22px; position:absolute;
|
||||
}
|
||||
fieldset.vimer>div.output input.current.insert { caret-color:black; }
|
||||
fieldset.vimer>div.output input.current.normal { caret-color:blue; }
|
||||
fieldset.vimer>div.output input.current.normal { caret-color:lightgray; }
|
||||
|
@ -28,6 +28,7 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
|
||||
can.page.styleWidth(can, can.ui.current, can.ui.content.style.width)
|
||||
}, onclick: function(event) { can.onkeymap._insert(event, can) },
|
||||
ondblclick: function(event) { var target = event.target
|
||||
return
|
||||
can.onaction.searchLine(event, can, target.value.slice(target.selectionStart, target.selectionEnd))
|
||||
},
|
||||
},
|
||||
|
@ -4,6 +4,9 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, conf,
|
||||
return can.core.CallFunc([can.onimport, msg.OptionProcess()], [can, msg])
|
||||
},
|
||||
|
||||
_confirm: function(can, msg, _arg) { var sub = can.request({}, can.Option())
|
||||
if (can.user.confirm(_arg)) { can.run(sub._event, [ctx.ACTION, "confirm"], function() {}, true) }
|
||||
},
|
||||
_location: function(can, msg) { location.href = msg._arg[0] },
|
||||
_rewrite: function(can, msg) {
|
||||
for (var i = 0; i < msg._arg.length; i += 2) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user