allow refreshing saved note, closes #304

This commit is contained in:
azivner
2019-01-08 23:32:03 +01:00
parent 05aee884b6
commit c8ec86e537
4 changed files with 22 additions and 3 deletions

View File

@@ -1,7 +1,9 @@
import noteDetailService from "./note_detail.js";
import treeService from "./tree.js";
const $searchString = $("#search-string");
const $component = $('#note-detail-search');
const $refreshButton = $('#note-detail-search-refresh-results-button');
function getContent() {
return JSON.stringify({
@@ -25,6 +27,8 @@ function show() {
$searchString.on('input', noteDetailService.noteChanged);
}
$refreshButton.click(() => treeService.reload());
export default {
getContent,
show,