mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 15:04:07 +01:00
This commit is contained in:
parent
1b1bdcc9ea
commit
d0dd7395b4
6 changed files with 10 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ import {transaction} from "../../wysiwyg/transaction";
|
|||
import {genIconHTML} from "../util";
|
||||
import {unicode2Emoji} from "../../../emoji";
|
||||
import {getColIconByType} from "./col";
|
||||
import {showMessage} from "../../../dialog/message";
|
||||
|
||||
const updateCol = (options: {
|
||||
target: HTMLElement,
|
||||
|
|
@ -58,6 +59,10 @@ const updateCol = (options: {
|
|||
};
|
||||
|
||||
const genSearchList = (element: Element, keyword: string, avId: string, isRelation: boolean, cb?: () => void) => {
|
||||
if (!isRelation && !avId) {
|
||||
showMessage(window.siyuan.languages.selectRelation);
|
||||
return
|
||||
}
|
||||
fetchPost(isRelation ? "/api/av/searchAttributeViewRelationKey" : "/api/av/searchAttributeViewNonRelationKey", {
|
||||
avID: avId,
|
||||
keyword
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue