moved dialog entrypoints into bootstrap, fixes

This commit is contained in:
azivner
2018-03-25 19:49:33 -04:00
parent 19c605a9a8
commit 341f47f0f2
15 changed files with 62 additions and 102 deletions

View File

@@ -1,6 +1,5 @@
import noteDetailService from '../services/note_detail.js';
const $showDialogButton = $("#show-source-button");
const $dialog = $("#note-source-dialog");
const $noteSource = $("#note-source");
@@ -45,14 +44,6 @@ function formatNode(node, level) {
return node;
}
$(document).bind('keydown', 'ctrl+u', e => {
showDialog();
e.preventDefault();
});
$showDialogButton.click(showDialog);
export default {
showDialog
};