Skip to content

Commit

Permalink
fix preview status switch button on wiki editr (#14742)
Browse files Browse the repository at this point in the history
Signed-off-by: a1012112796 <1012112796@qq.com>
  • Loading branch information
a1012112796 committed Feb 19, 2021
1 parent ca9c1f8 commit 39aa11f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_src/js/index.js
Expand Up @@ -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')) {
Expand Down

0 comments on commit 39aa11f

Please sign in to comment.