From 8a388842aaf4dcad8a33cb8638d0599b21ffa2b4 Mon Sep 17 00:00:00 2001 From: azivner Date: Wed, 30 Aug 2017 23:17:03 -0400 Subject: [PATCH] attempt to fix problem when inserting link --- src/templates/app.html | 4 ++-- static/js/init.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/templates/app.html b/src/templates/app.html index 0d7616732..e6b08826a 100644 --- a/src/templates/app.html +++ b/src/templates/app.html @@ -98,7 +98,7 @@ diff --git a/static/js/init.js b/static/js/init.js index 0993985e3..ae521b1ab 100644 --- a/static/js/init.js +++ b/static/js/init.js @@ -135,7 +135,7 @@ $(document).bind('keydown', 'alt+l', function() { }); }); -$("#addLinkButton").click(function() { +$("#insertLinkForm").submit(function addLink() { let val = $("#noteAutocomplete").val(); const noteIdMatch = / \(([A-Za-z0-9]{22})\)/.exec(val);