2018-03-28 09:36:01 +08:00
|
|
|
import bundleService from "./bundle.js";
|
|
|
|
import server from "./server.js";
|
|
|
|
import noteDetailService from "./note_detail.js";
|
|
|
|
|
|
|
|
const $noteDetailRender = $('#note-detail-render');
|
|
|
|
|
2018-03-28 09:46:38 +08:00
|
|
|
async function show() {
|
2018-03-28 09:36:01 +08:00
|
|
|
$noteDetailRender.show();
|
|
|
|
|
|
|
|
const bundle = await server.get('script/bundle/' + noteDetailService.getCurrentNoteId());
|
|
|
|
|
|
|
|
$noteDetailRender.html(bundle.html);
|
|
|
|
|
|
|
|
await bundleService.executeBundle(bundle);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
2018-03-28 09:46:38 +08:00
|
|
|
show,
|
2018-03-28 09:36:01 +08:00
|
|
|
getContent: () => null,
|
|
|
|
focus: () => null
|
|
|
|
}
|