mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix note placement from "create top level note"
This commit is contained in:
parent
b65a6c97a1
commit
ee54dc3463
@ -441,7 +441,7 @@ async function setNoteTitle(noteId, title) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function createNewTopLevelNote() {
|
async function createNewTopLevelNote() {
|
||||||
const rootNode = $tree.fancytree("getRootNode");
|
const rootNode = getNodesByNoteId('root')[0];
|
||||||
|
|
||||||
await createNote(rootNode, "root", "into");
|
await createNote(rootNode, "root", "into");
|
||||||
}
|
}
|
||||||
|
@ -54,13 +54,13 @@
|
|||||||
<a id="create-top-level-note-button" title="Create new top level note" class="icon-action"
|
<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>
|
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>
|
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"
|
<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>
|
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>
|
style="background: url('/images/icons/search-24.png')"></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user