mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-05 12:29:54 -06: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