1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-19 16:44:25 +00:00

Fix repo graph JS (#31377)

Fix #31376
Regression of #30395
This commit is contained in:
wxiaoguang 2024-06-15 00:21:40 +08:00 committed by GitHub
parent cdd057c7a3
commit 188e515efc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,9 +69,9 @@ export function initRepoGraphGit() {
const html = await response.text();
const div = document.createElement('div');
div.innerHTML = html;
document.getElementById('pagination').innerHTML = div.getElementById('pagination').innerHTML;
document.getElementById('rel-container').innerHTML = div.getElementById('rel-container').innerHTML;
document.getElementById('rev-container').innerHTML = div.getElementById('rev-container').innerHTML;
document.getElementById('pagination').innerHTML = div.querySelector('#pagination').innerHTML;
document.getElementById('rel-container').innerHTML = div.querySelector('#rel-container').innerHTML;
document.getElementById('rev-container').innerHTML = div.querySelector('#rev-container').innerHTML;
hideElem('#loading-indicator');
showElem('#rel-container');
showElem('#rev-container');