introduced NoteFull entity, fixes

This commit is contained in:
azivner
2018-03-25 23:25:17 -04:00
parent cdf94181d2
commit 35998058ce
15 changed files with 184 additions and 165 deletions

View File

@@ -1,4 +1,5 @@
import treeService from './tree.js';
import server from './server.js';
const $tree = $("#tree");
const $searchInput = $("input[name='search-text']");
@@ -45,6 +46,8 @@ async function doSearch() {
async function saveSearch() {
const {noteId} = await server.post('search/' + encodeURIComponent($searchInput.val()));
resetSearch();
await treeService.reload();
await treeService.activateNode(noteId);