add: pinned posts
This commit is contained in:
parent
e52733b00c
commit
eea3d08e1f
10 changed files with 324 additions and 55 deletions
|
@ -736,12 +736,17 @@ media_theme_pref();
|
|||
const self = reg_ns("ui");
|
||||
|
||||
self.define("refresh_container", (_, element, keep) => {
|
||||
if (keep.length === 0) {
|
||||
element.innerHTML = "";
|
||||
return;
|
||||
}
|
||||
|
||||
for (const child of element.children) {
|
||||
if (keep.includes(child.getAttribute("ui_ident"))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
child.remove();
|
||||
child.outerHTML = "";
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue