From d417902d942b14f1d340f0984b6318cc2c5bf9ac Mon Sep 17 00:00:00 2001 From: Matias De lellis Date: Sat, 30 May 2020 17:56:56 -0300 Subject: [PATCH] Open links in another tab.. --- js/script.js | 6 ++++++ 1 file changed, 6 insertions(+) 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();