some visual tweaks

This commit is contained in:
azivner
2017-12-26 19:54:43 -05:00
parent 0d3b3ec7c5
commit baab745462
5 changed files with 21 additions and 13 deletions

View File

@@ -13,7 +13,7 @@ const editTreePrefix = (function() {
await dialogEl.dialog({
modal: true,
width: 800
width: 500
});
const currentNode = noteTree.getCurrentNode();

View File

@@ -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 => {

View File

@@ -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) {