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);