abstracted note detail components

This commit is contained in:
azivner
2018-03-27 21:46:38 -04:00
parent 000cf99546
commit 913b6bb6f6
7 changed files with 36 additions and 54 deletions

View File

@@ -9,7 +9,7 @@ let codeEditor = null;
const $noteDetailCode = $('#note-detail-code');
const $executeScriptButton = $("#execute-script-button");
async function showCodeNote() {
async function show() {
if (!codeEditor) {
await utils.requireLibrary(utils.CODE_MIRROR);
@@ -84,7 +84,7 @@ $(document).bind('keydown', "ctrl+return", executeCurrentNote);
$executeScriptButton.click(executeCurrentNote);
export default {
showCodeNote,
show,
getContent,
focus
}