mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	added new label "sorted" which will keep children notes alphabetically sorted, fixes #82
This commit is contained in:
		| @@ -4,14 +4,14 @@ const repository = require('./repository'); | ||||
| const cls = require('./cls'); | ||||
| const sourceIdService = require('./source_id'); | ||||
|  | ||||
| async function executeNote(note) { | ||||
| async function executeNote(note, targetNote) { | ||||
|     if (!note.isJavaScript()) { | ||||
|         return; | ||||
|     } | ||||
|  | ||||
|     const bundle = await getScriptBundle(note); | ||||
|  | ||||
|     await executeBundle(bundle); | ||||
|     await executeBundle(bundle, note, targetNote); | ||||
| } | ||||
|  | ||||
| async function executeBundle(bundle, startNote, targetNote = null) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user