diff --git a/core/src/main/resources/hudson/widgets/HistoryWidget/index.jelly b/core/src/main/resources/hudson/widgets/HistoryWidget/index.jelly index 6e3c0462d645..90a2e9b751fa 100644 --- a/core/src/main/resources/hudson/widgets/HistoryWidget/index.jelly +++ b/core/src/main/resources/hudson/widgets/HistoryWidget/index.jelly @@ -57,7 +57,7 @@ THE SOFTWARE. ${%No builds} -
+
diff --git a/war/src/main/js/filter-build-history.js b/war/src/main/js/filter-build-history.js index 2ccd5098e11a..be29a542625a 100644 --- a/war/src/main/js/filter-build-history.js +++ b/war/src/main/js/filter-build-history.js @@ -6,7 +6,7 @@ const pageSearchInput = buildHistoryPage.querySelector( ); const ajaxUrl = buildHistoryPage.getAttribute("page-ajax"); const card = document.querySelector("#jenkins-builds"); -const xander = card.querySelector("#xander"); +const contents = card.querySelector("#jenkins-build-history"); const container = card.querySelector(".app-builds-container"); const noBuilds = card.querySelector("#no-builds") @@ -23,20 +23,20 @@ function loadPage() { container.classList.remove("app-builds-container--loading"); if (responseText.trim() === "") { - xander.innerHTML = ""; + contents.innerHTML = ""; noBuilds.style.display = "block"; return; } if (!document.startViewTransition) { - xander.innerHTML = responseText; + contents.innerHTML = responseText; noBuilds.style.display = "none"; - Behaviour.applySubtree(xander); + Behaviour.applySubtree(contents); } else { document.startViewTransition(() => { - xander.innerHTML = responseText; + contents.innerHTML = responseText; noBuilds.style.display = "none"; - Behaviour.applySubtree(xander); + Behaviour.applySubtree(contents); }); } });