disable note js if image wasnt rendered

This commit is contained in:
albert
2013-02-21 13:45:34 -05:00
parent b8d93c301a
commit c935d62a69

View File

@@ -491,7 +491,7 @@ Danbooru.Note = {
}
$(function() {
if ($("#c-posts").length && $("#a-show").length) {
if ($("#c-posts").length && $("#a-show").length && $("#image").length) {
$("#translate").one("click", Danbooru.Note.TranslationMode.start);
$(document).bind("keypress", "n", Danbooru.Note.TranslationMode.start);
Danbooru.Note.load_all();