mirror of
https://github.com/go-gitea/gitea.git
synced 2025-09-09 19:58:15 +00:00
Fix some UI problems for 1.23 (#33856)
Partially backport #32927 #33851
This commit is contained in:
@@ -221,7 +221,10 @@ function initRepoDiffShowMore() {
|
||||
if (!resp) {
|
||||
return;
|
||||
}
|
||||
$target.parent().replaceWith($(resp).find('#diff-file-boxes .diff-file-body .file-body').children());
|
||||
const $respFileBody = $(resp).find('#diff-file-boxes .diff-file-body .file-body');
|
||||
const respFileBodyChildren = Array.from($respFileBody.children());
|
||||
$target.parent().replaceWith($respFileBody.children());
|
||||
for (const el of respFileBodyChildren) window.htmx.process(el);
|
||||
onShowMoreFiles();
|
||||
} catch (error) {
|
||||
console.error('Error:', error);
|
||||
|
Reference in New Issue
Block a user