From: a1012112796 <1012112796@qq.com> Date: Fri, 19 Feb 2021 18:58:11 +0000 (+0800) Subject: fix preview status switch button on wiki editr (#14742) X-Git-Tag: v1.15.0-dev~153 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=39aa11f9c0d8aabd188f543d60752e0b8ff95cc5;p=gitea.git fix preview status switch button on wiki editr (#14742) Signed-off-by: a1012112796 <1012112796@qq.com> --- diff --git a/web_src/js/index.js b/web_src/js/index.js index 848c88bb1f..f5e3c705e8 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -1521,7 +1521,7 @@ function initWikiForm() { const $bEdit = $('.repository.wiki.new .previewtabs a[data-tab="write"]'); const $bPrev = $('.repository.wiki.new .previewtabs a[data-tab="preview"]'); const $toolbar = $('.editor-toolbar'); - const $bPreview = $('.editor-toolbar a.fa-eye'); + const $bPreview = $('.editor-toolbar button.preview'); const $bSideBySide = $('.editor-toolbar a.fa-columns'); $bEdit.on('click', () => { if ($toolbar.hasClass('disabled-for-preview')) {