From 39aa11f9c0d8aabd188f543d60752e0b8ff95cc5 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Sat, 20 Feb 2021 02:58:11 +0800 Subject: [PATCH] fix preview status switch button on wiki editr (#14742) 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 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')) { -- 2.39.5