Skip to content

Commit

Permalink
Refresh codemirror on show pull comment tab (#11100)
Browse files Browse the repository at this point in the history
Fix #10975

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
  • Loading branch information
4 people committed Apr 18, 2020
1 parent 12960b9 commit 731bdef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web_src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,7 @@ async function initRepository() {
$repoComparePull.find('button.show-form').on('click', function (e) {
e.preventDefault();
$repoComparePull.find('.pullrequest-form').show();
autoSimpleMDE.codemirror.refresh();
$(this).parent().hide();
});
}
Expand Down

0 comments on commit 731bdef

Please sign in to comment.