From a45af927ee2df0355f4bf6583c5c54852c7f7bc7 Mon Sep 17 00:00:00 2001 From: Toks Date: Fri, 9 Aug 2013 19:04:21 -0400 Subject: [PATCH] Prevent default click event in translation notice --- app/assets/javascripts/notes.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js index 12a5c795a..91f3028ee 100644 --- a/app/assets/javascripts/notes.js +++ b/app/assets/javascripts/notes.js @@ -473,7 +473,10 @@ Danbooru.Note = { $(window).bind("mouseup", Danbooru.Note.TranslationMode.Drag.stop); Danbooru.notice('Translation mode is on. Drag on the image to create notes. Turn translation mode off (shortcut is n).'); - $("#notice a:contains(Turn translation mode off)").click(Danbooru.Note.TranslationMode.stop); + $("#notice a:contains(Turn translation mode off)").click(function(e) { + Danbooru.Note.TranslationMode.stop(); + e.preventDefault(); + }); }, stop: function() {