remove flag/appeal/pool element text flash on post/show

This commit is contained in:
albert
2013-03-08 13:17:47 -05:00
parent 147efb74d3
commit 80f3bb5e47
5 changed files with 10 additions and 9 deletions

View File

@@ -2,7 +2,7 @@
Danbooru.PostAppeal = {};
Danbooru.PostAppeal.initialize_all = function() {
if ($("#c-posts") && $("#a-show")) {
if ($("#c-posts").length && $("#a-show").length) {
this.initialize_appeal();
this.hide_or_show_appeal_link();
}

View File

@@ -2,14 +2,14 @@
Danbooru.PostFlag = {};
Danbooru.PostFlag.initialize_all = function() {
if ($("#c-posts") && $("#a-show")) {
this.initialize_flag();
if ($("#c-posts").length && $("#a-show").length) {
this.initialize_flag();
this.hide_or_show_flag_link();
}
}
Danbooru.PostFlag.hide_or_show_flag_link = function() {
if (Danbooru.meta("post-is-deleted") == "true") {
if (Danbooru.meta("post-is-deleted") === "true") {
$("#flag").hide();
}
}
@@ -41,6 +41,6 @@
}
})();
$(document).ready(function() {
$(function() {
Danbooru.PostFlag.initialize_all();
});