Skip to content

Commit 9d62089

Browse files
Gustedlunnyzeripath6543
authored
Fix loading content history on show more (#17819)
* Fix loading content history on show more - Call `initRepoIssueContentHistory` so that the newly loaded issues also get their content history. - Resolves #17767 * apply history to show diff too Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: Lunny Xiao <[email protected]> Co-authored-by: zeripath <[email protected]> Co-authored-by: 6543 <[email protected]>
1 parent 6255ff8 commit 9d62089

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web_src/js/features/repo-diff.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {initCompReactionSelector} from './comp/ReactionSelector.js';
2-
2+
import {initRepoIssueContentHistory} from './repo-issue-content.js';
33
const {csrfToken} = window.config;
44

55
export function initRepoDiffReviewButton() {
@@ -101,6 +101,7 @@ export function initRepoDiffShowMore() {
101101
$('#diff-too-many-files-stats').remove();
102102
$('#diff-files').append($(resp).find('#diff-files li'));
103103
$('#diff-incomplete').replaceWith($(resp).find('#diff-file-boxes').children());
104+
initRepoIssueContentHistory();
104105
}).fail(() => {
105106
$('#diff-show-more-files, #diff-show-more-files-stats').removeClass('disabled');
106107
});
@@ -126,6 +127,7 @@ export function initRepoDiffShowMore() {
126127
}
127128

128129
$target.parent().replaceWith($(resp).find('#diff-file-boxes .diff-file-body .file-body').children());
130+
initRepoIssueContentHistory();
129131
}).fail(() => {
130132
$target.removeClass('disabled');
131133
});

0 commit comments

Comments
 (0)