From 22ed4527fcf6d5e3ce04a6b412a644534ab01dd1 Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Sat, 24 Jul 2021 22:30:36 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=B8=AE=E5=8A=A9=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _server/editor_listen.js | 1 + _server/editor_mappanel.js | 12 ++++++++++++ editor-mobile.html | 1 + editor.html | 3 ++- 4 files changed, 16 insertions(+), 1 deletion(-) 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 @@ +