Translate link toggle fix

In addition to preventing the event when starting translation mode, prevent it when stopping translation mode.
This commit is contained in:
Moebius-Strip
2015-08-09 02:08:15 -04:00
parent 23dfc455d5
commit 6277bb2f61

View File

@@ -572,13 +572,12 @@ Danbooru.Note = {
$("#mark-as-translated-section").show();
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(function(e) {
Danbooru.Note.TranslationMode.stop();
e.preventDefault();
});
$("#notice a:contains(Turn translation mode off)").click(Danbooru.Note.TranslationMode.stop);
},
stop: function() {
stop: function(e) {
e.preventDefault();
Danbooru.Note.TranslationMode.active = false;
$("#image").css("cursor", "auto");
$("#image").bind("click", Danbooru.Note.Box.toggle_all);