forked from NYANDEV/forgejo
Backport #25672 by @HesterG Right now when clicking on loadmore on files change page, if the loaded content is image, it will be always in load status: https://github.com/go-gitea/gitea/assets/17645053/39e449b6-067a-474c-9443-9dd98d5bbfe2 This PR fixes this by adding `initImageDiff ` to `onShowMoreFiles ` After: https://github.com/go-gitea/gitea/assets/17645053/87bbb13e-0064-4a6e-a7ad-0f0060eb8bff Co-authored-by: HesterG <hestergong@gmail.com>
This commit is contained in:
parent
0af6542a34
commit
1f90376041
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,7 @@ import {initRepoIssueContentHistory} from './repo-issue-content.js';
|
||||||
import {initDiffFileTree} from './repo-diff-filetree.js';
|
import {initDiffFileTree} from './repo-diff-filetree.js';
|
||||||
import {validateTextareaNonEmpty} from './comp/ComboMarkdownEditor.js';
|
import {validateTextareaNonEmpty} from './comp/ComboMarkdownEditor.js';
|
||||||
import {initViewedCheckboxListenerFor, countAndUpdateViewedFiles, initExpandAndCollapseFilesButton} from './pull-view-file.js';
|
import {initViewedCheckboxListenerFor, countAndUpdateViewedFiles, initExpandAndCollapseFilesButton} from './pull-view-file.js';
|
||||||
|
import {initImageDiff} from './imagediff.js';
|
||||||
|
|
||||||
const {csrfToken, pageData} = window.config;
|
const {csrfToken, pageData} = window.config;
|
||||||
|
|
||||||
|
@ -117,6 +118,7 @@ function onShowMoreFiles() {
|
||||||
initRepoIssueContentHistory();
|
initRepoIssueContentHistory();
|
||||||
initViewedCheckboxListenerFor();
|
initViewedCheckboxListenerFor();
|
||||||
countAndUpdateViewedFiles();
|
countAndUpdateViewedFiles();
|
||||||
|
initImageDiff();
|
||||||
}
|
}
|
||||||
|
|
||||||
export function loadMoreFiles(url) {
|
export function loadMoreFiles(url) {
|
||||||
|
|
Loading…
Reference in a new issue