fix opening note revisions from the sidebar

This commit is contained in:
zadam
2019-10-10 20:00:06 +02:00
parent 98a6670cb4
commit 85f736139b
3 changed files with 15 additions and 12 deletions

View File

@@ -62,14 +62,4 @@ $list.on('change', () => {
else {
$content.text("Preview isn't available for this note type.");
}
});
$(document).on('click', "a[data-action='note-revision']", event => {
const linkEl = $(event.target);
const noteId = linkEl.attr('data-note-path');
const noteRevisionId = linkEl.attr('data-note-revision-id');
showNoteRevisionsDialog(noteId, noteRevisionId);
return false;
});
});