mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
621bee1f14
commit
432d8547cc
1 changed files with 6 additions and 7 deletions
|
@ -121,10 +121,7 @@ export const insertAttrViewBlockAnimation = (options: {
|
||||||
previousId: string,
|
previousId: string,
|
||||||
groupID?: string
|
groupID?: string
|
||||||
}) => {
|
}) => {
|
||||||
if ((options.blockElement.querySelector('[data-type="av-search"]') as HTMLInputElement).value !== "") {
|
(options.blockElement.querySelector('[data-type="av-search"]') as HTMLInputElement).value = "";
|
||||||
showMessage(window.siyuan.languages.insertRowTip);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
const avId = options.blockElement.getAttribute("data-av-id");
|
const avId = options.blockElement.getAttribute("data-av-id");
|
||||||
const groupQuery = options.groupID ? `.av__body[data-group-id="${options.groupID}"] ` : "";
|
const groupQuery = options.groupID ? `.av__body[data-group-id="${options.groupID}"] ` : "";
|
||||||
let previousElement = options.blockElement.querySelector(`.av__row[data-id="${options.previousId}"]`) || options.blockElement.querySelector(groupQuery + ".av__row--header");
|
let previousElement = options.blockElement.querySelector(`.av__row[data-id="${options.previousId}"]`) || options.blockElement.querySelector(groupQuery + ".av__row--header");
|
||||||
|
@ -173,9 +170,11 @@ ${getTypeByCellElement(item) === "block" ? ' data-detached="true"' : ""}><span c
|
||||||
currentRow.setAttribute("data-need-update", "true");
|
currentRow.setAttribute("data-need-update", "true");
|
||||||
}
|
}
|
||||||
const sideRow = previousElement.classList.contains("av__row--header") ? currentRow.nextElementSibling : previousElement;
|
const sideRow = previousElement.classList.contains("av__row--header") ? currentRow.nextElementSibling : previousElement;
|
||||||
fetchPost("/api/av/getAttributeViewFilterSort", {
|
fetchPost("/api/av/getAttributeViewAddingBlockDefaultValues", {
|
||||||
id: avId,
|
avID: avId,
|
||||||
blockID: options.blockElement.getAttribute("data-node-id")
|
viewID: options.blockElement.getAttribute(Constants.CUSTOM_SY_AV_VIEW),
|
||||||
|
groupID: options.groupID,
|
||||||
|
previousID: options.previousId,
|
||||||
}, (response) => {
|
}, (response) => {
|
||||||
// https://github.com/siyuan-note/siyuan/issues/10517
|
// https://github.com/siyuan-note/siyuan/issues/10517
|
||||||
let hideTextCell = false;
|
let hideTextCell = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue