fixes after refactoring, base functionality works again

This commit is contained in:
azivner
2018-03-24 23:00:12 -04:00
parent 5ea060a054
commit 0f6b00e1c8
3 changed files with 37 additions and 30 deletions

View File

@@ -19,7 +19,7 @@ const addLink = (function() {
linkTypeChanged();
}
function showDialog() {
async function showDialog() {
glob.activeDialog = $dialog;
if (noteEditor.getCurrentNoteType() === 'text') {
@@ -49,7 +49,7 @@ const addLink = (function() {
}
$autoComplete.autocomplete({
source: treeService.getAutocompleteItems(),
source: await treeService.getAutocompleteItems(),
minLength: 0,
change: () => {
const val = $autoComplete.val();