mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	fix #5
This commit is contained in:
		| @@ -772,12 +772,22 @@ const noteTree = (function() { | ||||
|         if (target === 'after') { | ||||
|             node.appendSibling(newNode).setActive(true); | ||||
|         } | ||||
|         else { | ||||
|             node.addChildren(newNode).setActive(true); | ||||
|         else if (target === 'into') { | ||||
|             if (!node.getChildren() && node.isFolder()) { | ||||
|                 await node.setExpanded(); | ||||
|             } | ||||
|             else { | ||||
|                 node.addChildren(newNode); | ||||
|             } | ||||
|  | ||||
|             node.getLastChild().setActive(true); | ||||
|  | ||||
|             node.folder = true; | ||||
|             node.renderTitle(); | ||||
|         } | ||||
|         else { | ||||
|             throwError("Unrecognized target: " + target); | ||||
|         } | ||||
|  | ||||
|         showMessage("Created!"); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user