split out render and search from note detail service

This commit is contained in:
azivner
2018-03-27 21:36:01 -04:00
parent c918267750
commit 000cf99546
4 changed files with 64 additions and 41 deletions

View File

@@ -0,0 +1,21 @@
import bundleService from "./bundle.js";
import server from "./server.js";
import noteDetailService from "./note_detail.js";
const $noteDetailRender = $('#note-detail-render');
async function showRenderNote() {
$noteDetailRender.show();
const bundle = await server.get('script/bundle/' + noteDetailService.getCurrentNoteId());
$noteDetailRender.html(bundle.html);
await bundleService.executeBundle(bundle);
}
export default {
showRenderNote,
getContent: () => null,
focus: () => null
}