Toggle note container instead of note boxes

This commit is contained in:
zatchii
2013-05-05 01:11:44 +00:00
parent 7fc3d20f6f
commit bfb58f9455

View File

@@ -111,7 +111,9 @@ Danbooru.Note = {
if ((new Date).getTime() < Danbooru.Note.ignore_click_until) {
return;
}
$(".note-box").toggle();
var is_hidden = document.getElementById('note-container').style.display == 'none';
// Why does toggle() not work here?
$("#note-container").toggle(is_hidden);
}
},