Skip to content

Commit

Permalink
Renam
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Jan 14, 2024
1 parent a8277bf commit 0b4a5dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ THE SOFTWARE.
${%No builds}
</div>

<div id="xander" class="app-builds-container__items">
<div id="jenkins-build-history" class="app-builds-container__items">
</div>
</div>

Expand Down
12 changes: 6 additions & 6 deletions war/src/main/js/filter-build-history.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand All @@ -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);
});
}
});
Expand Down

0 comments on commit 0b4a5dd

Please sign in to comment.