Vanessa 2024-03-11 20:46:03 +08:00
parent 8f271f6ef1
commit 8675b49daa
6 changed files with 9 additions and 5 deletions

View file

@ -124,6 +124,10 @@ ${(item.getAttribute("data-block-id") || item.dataset.dtype === "block") ? ' dat
previousElement.insertAdjacentHTML("afterend", html);
if (avId) {
const currentRow = previousElement.nextElementSibling;
if (blockElement.querySelector('.av__views [data-type="av-sort"]').classList.contains("block__icon--active") &&
!blockElement.querySelector('[data-type="av-load-more"]').parentElement.classList.contains("fn__none")) {
currentRow.setAttribute("data-need-update", "true");
}
const sideRow = previousElement.classList.contains("av__row--header") ? currentRow.nextElementSibling : previousElement;
fetchPost("/api/av/getAttributeViewFilterSort", {
id: avId,