note image detail

This commit is contained in:
azivner
2018-11-08 10:30:35 +01:00
parent d0d2a7fe47
commit 21e952a7f0
13 changed files with 39 additions and 67 deletions

View File

@@ -2,7 +2,7 @@ import bundleService from "./bundle.js";
import server from "./server.js";
import noteDetailService from "./note_detail.js";
const $noteDetailRender = $('#note-detail-render');
const $component = $('#note-detail-render');
const $noteDetailRenderHelp = $('#note-detail-render-help');
const $noteDetailRenderContent = $('#note-detail-render-content');
const $renderButton = $('#render-button');
@@ -14,7 +14,7 @@ async function render() {
&& attr.name === 'renderNote'
&& !!attr.value);
$noteDetailRender.show();
$component.show();
$noteDetailRenderContent.empty();
$noteDetailRenderContent.toggle(renderNotes.length > 0);