diff --git a/page/index.css b/page/index.css index e33e9307..08cf100e 100644 --- a/page/index.css +++ b/page/index.css @@ -126,7 +126,7 @@ div.code, div.story, div.item, div.content, table.content, textarea { white-spac div.code, div.story, div.item { text-align:left; } /* position cursor */ -fieldset.full, fieldset.float, fieldset.input, body>div.toast, body>div.carte, body>div.input, body>div.upload { position:fixed; z-index:10; } +fieldset.auto, fieldset.full, fieldset.float, fieldset.input, body>div.toast, body>div.carte, body>div.input, body>div.upload { position:fixed; z-index:10; } legend, select, input[type=button], div.item, div.tabs, th, td, h1, h2, h3 { cursor:pointer; } div.title, div.story[data-type=spark] { cursor:copy; } diff --git a/plugin/local/code/inner.js b/plugin/local/code/inner.js index 08e4c0a8..8bcb4df1 100644 --- a/plugin/local/code/inner.js +++ b/plugin/local/code/inner.js @@ -50,7 +50,17 @@ Volcanos(chat.ONIMPORT, {help: "导入数据", _init: function(can, msg, cb, tar cli.CLEAR, function(event) { can.onmotion.clear(can, ui.output) }, cli.SHOW, function(event) { can.onaction[cli.SHOW](event, can) }, nfs.LOAD, function(event) { can.onaction[nfs.LOAD](event, can) }, - mdb.LINK, function(event) { can.user.open(can.misc.MergeURL(can, {pod: can.misc.Search(can, ice.POD), cmd: can.base.Path(can.Option(nfs.PATH), can.Option(nfs.FILE))})) }, + mdb.LINK, function(event) { + if ([nfs.ZML, nfs.IML].indexOf(can.base.Ext(can.Option(nfs.FILE))) > -1) { + can.user.open(can.misc.MergeURL(can, { + pod: can.misc.Search(can, ice.POD), website: can.base.trimPrefix(can.base.Path(can.Option(nfs.PATH), can.Option(nfs.FILE)), "src/website/"), + })) + } else { + can.user.open(can.misc.MergeURL(can, { + pod: can.misc.Search(can, ice.POD), cmd: can.base.Path(can.Option(nfs.PATH), can.Option(nfs.FILE)) + })) + } + }, mdb.PLUGIN, function(event) { can.user.input(event, can, [ctx.INDEX, ctx.ARGS], function(data) { can.onimport.plug(can, data, ui.output) }) }, html.WIDTH, function(event) { can.user.input(event, can, [{name: html.WIDTH, value: can.profile_size[can.onexport.keys(can)]*100/can.ConfWidth()||50}], function(list) { diff --git a/plugin/table.js b/plugin/table.js index 3e8c3410..3517b016 100644 --- a/plugin/table.js +++ b/plugin/table.js @@ -109,7 +109,7 @@ Volcanos(chat.ONIMPORT, {help: "导入数据", _init: function(can, msg, cb, tar {view: [wiki.TITLE, html.DIV, value.name]}, {view: [wiki.CONTENT, html.DIV, value.text]}, {view: html.ACTION, inner: value.action, onclick: function(event) { - can.runAction(can.request(event, value, {_handle: ice.FALSE}), event.target.name, []) + can.run(can.request(event, value), [ctx.ACTION, event.target.name]) }}, ]} }))