From 358ff4bd2ffdd1fba966a8be6fddbecf1857829d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B9=BF=E6=98=8E?= Date: Wed, 1 Jun 2022 15:05:43 +0800 Subject: [PATCH] * Fix doc bug. --- module/doc/js/objectlibs.js | 2 -- module/doc/view/content.html.php | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/doc/js/objectlibs.js b/module/doc/js/objectlibs.js index 7714d051b7..a661bf9b5d 100644 --- a/module/doc/js/objectlibs.js +++ b/module/doc/js/objectlibs.js @@ -8,8 +8,6 @@ $(function() }) $('.menu-actions > a').blur(function() {$(this).css('background', 'none');}) - - $('#content .table-row .markdown-print a').attr('target', '_blank'); }) /** diff --git a/module/doc/view/content.html.php b/module/doc/view/content.html.php index c627cecee1..b2c0fa95ba 100644 --- a/module/doc/view/content.html.php +++ b/module/doc/view/content.html.php @@ -297,6 +297,8 @@ $(function() var simplemde = new SimpleMDE({element: $("#markdownContent")[0],toolbar:false, status: false}); simplemde.value(markdownText); simplemde.togglePreview(); + + $('#content .CodeMirror .editor-preview a').attr('target', '_blank'); })