Skip to content

Commit 39aa11f

Browse files
authored
fix preview status switch button on wiki editr (#14742)
Signed-off-by: a1012112796 <[email protected]>
1 parent ca9c1f8 commit 39aa11f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1521,7 +1521,7 @@ function initWikiForm() {
15211521
const $bEdit = $('.repository.wiki.new .previewtabs a[data-tab="write"]');
15221522
const $bPrev = $('.repository.wiki.new .previewtabs a[data-tab="preview"]');
15231523
const $toolbar = $('.editor-toolbar');
1524-
const $bPreview = $('.editor-toolbar a.fa-eye');
1524+
const $bPreview = $('.editor-toolbar button.preview');
15251525
const $bSideBySide = $('.editor-toolbar a.fa-columns');
15261526
$bEdit.on('click', () => {
15271527
if ($toolbar.hasClass('disabled-for-preview')) {

0 commit comments

Comments
 (0)