From cc154bc5a16ef6009137448825c62da8b8561ac2 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Fri, 19 Feb 2021 14:01:14 +0800 Subject: [PATCH] fix preview status switch button on wiki editr Signed-off-by: a1012112796 <1012112796@qq.com> --- web_src/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/index.js b/web_src/js/index.js index c67b3c809bb2f..8d6dbf1280b2b 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')) {