0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-26 07:34:19 +01: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 html = await response.text();
const div = document.createElement('div'); const div = document.createElement('div');
div.innerHTML = html; div.innerHTML = html;
document.getElementById('pagination').innerHTML = div.getElementById('pagination').innerHTML; document.getElementById('pagination').innerHTML = div.querySelector('#pagination').innerHTML;
document.getElementById('rel-container').innerHTML = div.getElementById('rel-container').innerHTML; document.getElementById('rel-container').innerHTML = div.querySelector('#rel-container').innerHTML;
document.getElementById('rev-container').innerHTML = div.getElementById('rev-container').innerHTML; document.getElementById('rev-container').innerHTML = div.querySelector('#rev-container').innerHTML;
hideElem('#loading-indicator'); hideElem('#loading-indicator');
showElem('#rel-container'); showElem('#rel-container');
showElem('#rev-container'); showElem('#rev-container');