mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-13 18:54:21 +01:00
This commit is contained in:
parent
8f271f6ef1
commit
8675b49daa
6 changed files with 9 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue