fix preview status switch button on wiki editr (#14742)

Signed-off-by: a1012112796 <1012112796@qq.com>
release/v1.15
a1012112796 2021-02-20 02:58:11 +08:00 committed by GitHub
parent ca9c1f822e
commit 39aa11f9c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1521,7 +1521,7 @@ function initWikiForm() {
const $bEdit = $('.repository.wiki.new .previewtabs a[data-tab="write"]'); const $bEdit = $('.repository.wiki.new .previewtabs a[data-tab="write"]');
const $bPrev = $('.repository.wiki.new .previewtabs a[data-tab="preview"]'); const $bPrev = $('.repository.wiki.new .previewtabs a[data-tab="preview"]');
const $toolbar = $('.editor-toolbar'); const $toolbar = $('.editor-toolbar');
const $bPreview = $('.editor-toolbar a.fa-eye'); const $bPreview = $('.editor-toolbar button.preview');
const $bSideBySide = $('.editor-toolbar a.fa-columns'); const $bSideBySide = $('.editor-toolbar a.fa-columns');
$bEdit.on('click', () => { $bEdit.on('click', () => {
if ($toolbar.hasClass('disabled-for-preview')) { if ($toolbar.hasClass('disabled-for-preview')) {