feat: integrate Tagify for multi-tag support and add a new view-note modal across the application
This commit is contained in:
@@ -289,9 +289,12 @@ function renameItem(id, currName) {
|
||||
}
|
||||
|
||||
function deleteItem(id, name) {
|
||||
if(!confirm(`Delete "${name}"? This cannot be undone.`)) return;
|
||||
document.getElementById('delete-item-id').value = id;
|
||||
document.getElementById('delete-item-form').submit();
|
||||
appConfirm(`Delete "${name}"? This cannot be undone.`).then(y => {
|
||||
if(y) {
|
||||
document.getElementById('delete-item-id').value = id;
|
||||
document.getElementById('delete-item-form').submit();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function openShare(id) {
|
||||
@@ -300,9 +303,12 @@ function openShare(id) {
|
||||
}
|
||||
|
||||
function removeProjectShare(shareId) {
|
||||
if(!confirm('Unshare this item?')) return;
|
||||
document.getElementById('remove-share-id').value = shareId;
|
||||
document.getElementById('remove-share-form').submit();
|
||||
appConfirm('Unshare this item?').then(y => {
|
||||
if(y) {
|
||||
document.getElementById('remove-share-id').value = shareId;
|
||||
document.getElementById('remove-share-form').submit();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function showNewFolderDialog() {
|
||||
|
||||
Reference in New Issue
Block a user