add bookmark collection editor

This commit is contained in:
2026-06-02 08:12:26 +03:00
parent 5676ced836
commit edfa2e232f
9 changed files with 163 additions and 24 deletions

View File

@@ -0,0 +1,18 @@
export const b = {}
export function addCollection(ev, sender, el) {
el.innerHTML += b.templates.collectionItem;
}
export function deleteCollection(ev, sender, el) {
if (!el.contains(sender)) return;
b.send({ 'id': el.prop('id') }, 'countDeletedCollection');
el.remove();
}
export function countDeletedCollection(payload, _, el) {
if (payload.id === 'new') {
return;
}
el.value += `${payload.id};`
}