Prevent default click event in translation notice

This commit is contained in:
Toks
2013-08-09 19:04:21 -04:00
parent f7d1038860
commit a45af927ee

View File

@@ -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. <a href="#">Turn translation mode off</a> (shortcut is <span class="key">n</span>).');
$("#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() {