initial decallbackization and promisification of frontend

This commit is contained in:
azivner
2017-11-03 20:01:32 -04:00
parent ac0e5ada6e
commit 702d47e6b0
4 changed files with 164 additions and 175 deletions

View File

@@ -61,9 +61,7 @@ $(document).tooltip({
const noteId = getNoteIdFromLink($(this).attr("href"));
if (noteId !== null) {
loadNote(noteId, note => {
callback(note.detail.note_text);
});
loadNote(noteId).then(note => callback(note.detail.note_text));
}
},
close: function(event, ui)