fix note placement from "create top level note"

This commit is contained in:
azivner 2018-08-29 18:31:29 +02:00
parent b65a6c97a1
commit ee54dc3463
2 changed files with 3 additions and 3 deletions

View File

@ -441,7 +441,7 @@ async function setNoteTitle(noteId, title) {
}
async function createNewTopLevelNote() {
const rootNode = $tree.fancytree("getRootNode");
const rootNode = getNodesByNoteId('root')[0];
await createNote(rootNode, "root", "into");
}

View File

@ -54,13 +54,13 @@
<a id="create-top-level-note-button" title="Create new top level note" class="icon-action"
style="background: url('/images/icons/file-plus-24.png')"></a>
<a id="collapse-tree-button" title="Collapse note tree" class="icon-action"
<a id="collapse-tree-button" title="Collapse note tree. Shortcut ALT+C" class="icon-action"
style="background: url('/images/icons/list-24.png')"></a>
<a id="scroll-to-current-note-button" title="Scroll to current note. Shortcut CTRL+." class="icon-action"
style="background: url('/images/icons/crosshair-24.png')"></a>
<a id="toggle-search-button" title="Search in notes" class="icon-action"
<a id="toggle-search-button" title="Search in notes. Shortcut CTRL+S" class="icon-action"
style="background: url('/images/icons/search-24.png')"></a>
</div>