-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboard-events.js
More file actions
41 lines (37 loc) · 991 Bytes
/
board-events.js
File metadata and controls
41 lines (37 loc) · 991 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
export function cardListChanged(mutation) {
return (
mutation.type === "childList" &&
mutation.target.classList.contains("list-cards")
);
}
export function cardChanged(mutation) {
return (
mutation.type === "childList" &&
mutation.target.classList.contains("list-card")
);
}
export function cardTitleChanged(mutation) {
return (
mutation.type === "childList" &&
mutation.target.classList.contains("list-card-title")
);
}
export function cardOpened(mutation) {
return (
mutation.type === "attributes" &&
mutation.target.classList.contains("card-detail-window")
);
}
export function cardOpenedAlready(mutation) {
return (
mutation.type === "childList" &&
mutation.target.classList.contains("window-module")
);
}
export function cardLinkChanged(changedElement) {
return (
changedElement.target.classList.contains("list-card") &&
changedElement.type === "attributes" &&
changedElement.attributeName === "href"
);
}