mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08: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() { | ||||
|     const rootNode = $tree.fancytree("getRootNode"); | ||||
|     const rootNode = getNodesByNoteId('root')[0]; | ||||
| 
 | ||||
|     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" | ||||
|              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> | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 azivner
						azivner