This commit is contained in:
azivner 2018-04-07 13:14:01 -04:00
parent e378d9f645
commit d19f044961
2 changed files with 3 additions and 2 deletions

View File

@ -55,6 +55,7 @@ function ScriptApi(startNote, currentNote) {
getInstanceName: () => window.glob.instanceName, getInstanceName: () => window.glob.instanceName,
runOnServer, runOnServer,
formatDateISO: utils.formatDateISO, formatDateISO: utils.formatDateISO,
parseDate: utils.parseDate,
showMessage: utils.showMessage, showMessage: utils.showMessage,
showError: utils.showError showError: utils.showError
} }

View File

@ -15,12 +15,12 @@ const DAYS = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Satur
const MONTHS = ['January','February','March','April','May','June','July','August','September','October','November','December']; const MONTHS = ['January','February','March','April','May','June','July','August','September','October','November','December'];
async function createNote(parentNoteId, noteTitle, noteText) { async function createNote(parentNoteId, noteTitle, noteText) {
return await noteService.createNewNote(parentNoteId, { return (await noteService.createNewNote(parentNoteId, {
title: noteTitle, title: noteTitle,
content: noteText, content: noteText,
target: 'into', target: 'into',
isProtected: false isProtected: false
}); })).note;
} }
async function getNoteStartingWith(parentNoteId, startsWith) { async function getNoteStartingWith(parentNoteId, startsWith) {