编辑器增加帮助入口

This commit is contained in:
ckcz123 2021-07-24 22:30:36 +08:00
parent 65e11ab0c4
commit 22ed4527fc
4 changed files with 16 additions and 1 deletions

View File

@ -165,6 +165,7 @@ editor_listen_wrapper = function (editor) {
editor.uifunctions.selectFloor_func()
editor.uifunctions.saveFloor_func()
editor.uifunctions.openDoc_func();
editor.uifunctions.newMap_func()

View File

@ -949,6 +949,18 @@ editor_mappanel_wrapper = function (editor) {
saveFloor.onclick = editor_mode.saveFloor;
}
editor.uifunctions.openDoc_func = function () {
var openDoc = document.getElementById('openDoc');
openDoc.onclick = function () {
if (editor.isMobile) {
if (!confirm('你确定要打开帮助文档吗?')) return;
window.location='/_docs/';
} else {
window.open('/_docs/', '_blank');
}
}
}
editor.uifunctions.lastUsed_click = function (e) {
e.preventDefault();
e.stopImmediatePropagation();

View File

@ -383,6 +383,7 @@
<select id="selectFloor" style="clear:left"></select>
<input type="button" value="保存地图" id='saveFloor'/>
<input type="button" value="后退" id="undoFloor" />
<input type="button" value="查看帮助文档" id="openDoc" />
<span id='mobileeditdata' style="display:none">
<input type="button" value="编辑"/>
<input type="button" value="显示完整名称" style="display: none;"/>

View File

@ -344,9 +344,10 @@
<input type="button" id='bigmapBtn' value="大地图" style="margin-left: 5px"/>
</div>
<br>
<select id="selectFloor"></select>
<select id="selectFloor" style="margin-bottom: 5px;"></select>
<input type="button" value="保存地图" id='saveFloor'/>
<input type="button" value="后退" id="undoFloor" />
<input type="button" value="查看帮助文档" id="openDoc" />
</div>
</div>
<div id="mid2">