diff options
author | a1012112796 <1012112796@qq.com> | 2021-02-20 02:58:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-19 19:58:11 +0100 |
commit | 39aa11f9c0d8aabd188f543d60752e0b8ff95cc5 (patch) | |
tree | d87c36ea3c3e1f3d4649f2937332a7f581b13d5f /web_src/js/index.js | |
parent | ca9c1f822eebd090e693c5271b22bf1a721eadc6 (diff) | |
download | gitea-39aa11f9c0d8aabd188f543d60752e0b8ff95cc5.tar.gz gitea-39aa11f9c0d8aabd188f543d60752e0b8ff95cc5.zip |
fix preview status switch button on wiki editr (#14742)
Signed-off-by: a1012112796 <1012112796@qq.com>
Diffstat (limited to 'web_src/js/index.js')
-rw-r--r-- | web_src/js/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
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')) { |