mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-06 04:50:03 -06:00
some visual tweaks
This commit is contained in:
@@ -13,7 +13,7 @@ const editTreePrefix = (function() {
|
||||
|
||||
await dialogEl.dialog({
|
||||
modal: true,
|
||||
width: 800
|
||||
width: 500
|
||||
});
|
||||
|
||||
const currentNode = noteTree.getCurrentNode();
|
||||
|
||||
@@ -29,7 +29,7 @@ const noteHistory = (function() {
|
||||
for (const item of historyItems) {
|
||||
const dateModified = parseDate(item.date_modified_from);
|
||||
|
||||
$("#note-history-list").append($('<option>', {
|
||||
listEl.append($('<option>', {
|
||||
value: item.note_history_id,
|
||||
text: formatDateTime(dateModified)
|
||||
}));
|
||||
@@ -42,6 +42,9 @@ const noteHistory = (function() {
|
||||
|
||||
listEl.val(noteHistoryId).trigger('change');
|
||||
}
|
||||
else {
|
||||
titleEl.text("No history for this note yet...");
|
||||
}
|
||||
}
|
||||
|
||||
$(document).bind('keydown', 'alt+h', e => {
|
||||
|
||||
@@ -52,7 +52,7 @@ const treeChanges = (function() {
|
||||
}
|
||||
|
||||
async function deleteNode(node) {
|
||||
if (!confirm('Are you sure you want to delete note "' + node.title + '"?')) {
|
||||
if (!confirm('Are you sure you want to delete note "' + node.title + '" and all its sub-notes?')) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -83,6 +83,8 @@ const treeChanges = (function() {
|
||||
}
|
||||
|
||||
noteTree.reload();
|
||||
|
||||
showMessage("Note has been deleted.");
|
||||
}
|
||||
|
||||
async function moveNodeUpInHierarchy(node) {
|
||||
|
||||
Reference in New Issue
Block a user