small usability improvements

This commit is contained in:
azivner
2017-12-16 21:35:44 -05:00
parent 8eff18922c
commit ccc7775c7c
2 changed files with 7 additions and 7 deletions

View File

@@ -3,6 +3,7 @@
const noteTree = (function() {
const treeEl = $("#tree");
const parentListEl = $("#parent-list");
const parentListListEl = $("#parent-list-list");
let startNotePath = null;
let notesTreeMap = {};
@@ -280,9 +281,7 @@ const noteTree = (function() {
}
else {
parentListEl.show();
parentListEl.empty();
const list = $("<ul/>");
parentListListEl.empty();
for (const parentNoteId of parents) {
const parentNotePath = getSomeNotePath(parentNoteId);
@@ -299,10 +298,8 @@ const noteTree = (function() {
item = link.createNoteLink(notePath, title);
}
list.append($("<li/>").append(item));
parentListListEl.append($("<li/>").append(item));
}
parentListEl.append(list);
}
}