diff --git a/js/script.js b/js/script.js index 67707c9..425c7d8 100644 --- a/js/script.js +++ b/js/script.js @@ -220,6 +220,7 @@ View.prototype = { var autolist = new AutoList(); var editor = new MediumEditor(modalcontent, { + targetBlank: true, toolbar: { buttons: [ 'bold', @@ -477,6 +478,11 @@ View.prototype = { self.editNote(id); }); + // Doesn't show modal dialog when opening link + $("#app-content").on("click", ".note-grid-item a", function (event) { + event.stopPropagation(); + }); + // Cancel when click outside the modal. $('#app-content').on('click', '.modal-note-background', function (event) { event.stopPropagation();