fixes, separation of notefull from noteshort

This commit is contained in:
zadam
2020-01-25 14:37:12 +01:00
parent 516e6c35da
commit ac7d5f2e81
18 changed files with 64 additions and 103 deletions

View File

@@ -15,12 +15,10 @@ function getActiveEditor() {
}
}
async function loadNote(noteId) {
async function loadNoteFull(noteId) {
const row = await server.get('notes/' + noteId);
const noteShort = await treeCache.getNote(noteId);
return new NoteFull(treeCache, row, noteShort);
return new NoteFull(row);
}
function focusOnTitle() {
@@ -65,7 +63,7 @@ $(window).on('beforeunload', () => {
});
export default {
loadNote,
loadNoteFull,
focusOnTitle,
focusAndSelectTitle,
getActiveEditor,