From 22271932f122207a8569572cd29af20ec1877310 Mon Sep 17 00:00:00 2001 From: Toks Date: Fri, 3 Jan 2014 02:05:37 -0500 Subject: [PATCH] fixes #1722 --- app/assets/javascripts/notes.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js index 83f69bffd..d9643e8fa 100644 --- a/app/assets/javascripts/notes.js +++ b/app/assets/javascripts/notes.js @@ -269,13 +269,17 @@ Danbooru.Note = { if (Danbooru.meta("current-user-name") !== "Anonymous") { $note_body.click(function(e) { - var $note_body_inner = $(e.currentTarget); - Danbooru.Note.Edit.show($note_body_inner); + if (e.target.tagName !== "A") { + var $note_body_inner = $(e.currentTarget); + Danbooru.Note.Edit.show($note_body_inner); + } e.stopPropagation(); }); } else { $note_body.click(function(e) { - Danbooru.notice("You must be logged in to edit notes"); + if (e.target.tagName !== "A") { + Danbooru.notice("You must be logged in to edit notes"); + } e.stopPropagation(); }); }