diff --git a/panel/header.js b/panel/header.js index 7082b34a..52f0b6a0 100644 --- a/panel/header.js +++ b/panel/header.js @@ -199,10 +199,6 @@ Volcanos("onaction", {help: "交互数据", list: [], _init: function(can, meta, }, carte: function(event, can, list, cb) { can.user.carte(event, can, can.onaction, list, cb) }, river: function(event, can) { can.onaction.River(can) }, - tutor: function(event, can) { can.user.open("/chat/cmd/src/help/tutor.shy") }, - manual: function(event, can) { can.user.open("/chat/cmd/src/help/manual.shy") }, - program: function(event, can) { can.user.open("/chat/cmd/src/help/program.shy") }, - refer: function(event, can) { can.user.open("/chat/cmd/src/help/refer.shy") }, black: function(event, can, button) { can.onlayout.topic(can, button) diff --git a/plugin/local/chat/div.js b/plugin/local/chat/div.js index 0f438206..68fe1aa4 100644 --- a/plugin/local/chat/div.js +++ b/plugin/local/chat/div.js @@ -20,7 +20,7 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg, can.onmotion.hidden(can, can._action) width = can.Conf("width"), height = can.Conf("height") } - if (location.pathname.indexOf("/chat/cmd") == 0) { + if (can.user.isCmd) { width = window.innerWidth, height = window.innerHeight can.page.Modify(can, can._output, {style: {width: width, height: height}}) } diff --git a/plugin/local/wiki/word.css b/plugin/local/wiki/word.css index 322a1c7f..4a540b92 100644 --- a/plugin/local/wiki/word.css +++ b/plugin/local/wiki/word.css @@ -1,3 +1,6 @@ +fieldset.word>div.legend { + display:none; +} fieldset.word>div.output { clear:none; float:left; diff --git a/plugin/local/wiki/word.js b/plugin/local/wiki/word.js index 34f1d459..a3e98390 100644 --- a/plugin/local/wiki/word.js +++ b/plugin/local/wiki/word.js @@ -9,7 +9,7 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg, // delete(data.meta) }) - if (location.pathname.indexOf("/chat/cmd") == 0) { + if (can.user.isCmd) { can.page.ClassList.add(can, can._fields, "cmd") can.page.Modify(can, can.sup._navmenu, {style: {height: window.innerHeight}}) if (can.sup._navmenu) {