loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix show more for image on diff page (#25672)

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

authored by

HesterG and committed by
GitHub
dae022ab 1195d66c

+2
+2
web_src/js/features/repo-diff.js
··· 4 4 import {initDiffFileTree} from './repo-diff-filetree.js'; 5 5 import {validateTextareaNonEmpty} from './comp/ComboMarkdownEditor.js'; 6 6 import {initViewedCheckboxListenerFor, countAndUpdateViewedFiles, initExpandAndCollapseFilesButton} from './pull-view-file.js'; 7 + import {initImageDiff} from './imagediff.js'; 7 8 8 9 const {csrfToken, pageData} = window.config; 9 10 ··· 117 118 initRepoIssueContentHistory(); 118 119 initViewedCheckboxListenerFor(); 119 120 countAndUpdateViewedFiles(); 121 + initImageDiff(); 120 122 } 121 123 122 124 export function loadMoreFiles(url) {