]> source.dussan.org Git - gitea.git/commitdiff
fix preview status switch button on wiki editr (#14742)
authora1012112796 <1012112796@qq.com>
Fri, 19 Feb 2021 18:58:11 +0000 (02:58 +0800)
committerGitHub <noreply@github.com>
Fri, 19 Feb 2021 18:58:11 +0000 (19:58 +0100)
Signed-off-by: a1012112796 <1012112796@qq.com>
web_src/js/index.js

index 848c88bb1f6bd8bf72ec6e55cbe3b3d688731c1a..f5e3c705e82a330291bbbb5816eb9191717be203 100644 (file)
@@ -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')) {