diff --git a/_server/editor_listen.js b/_server/editor_listen.js index e8c09dfe..5f7c50a3 100644 --- a/_server/editor_listen.js +++ b/_server/editor_listen.js @@ -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() diff --git a/_server/editor_mappanel.js b/_server/editor_mappanel.js index 8f497c93..3ac4b0bd 100644 --- a/_server/editor_mappanel.js +++ b/_server/editor_mappanel.js @@ -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(); diff --git a/editor-mobile.html b/editor-mobile.html index 9f3548d6..40830608 100644 --- a/editor-mobile.html +++ b/editor-mobile.html @@ -383,6 +383,7 @@ +