add sanity check for update category post counts method

This commit is contained in:
albert
2013-03-10 00:35:36 -05:00
parent 27926df522
commit f96cd644bc
3 changed files with 7 additions and 5 deletions

View File

@@ -9,14 +9,14 @@
}
Danbooru.PostModeration.hide_or_show_approve_and_disapprove_links = function() {
if (Danbooru.meta("post-is-approvable") != "true") {
if (Danbooru.meta("post-is-approvable") !== "true") {
$("#approve").hide();
$("#disapprove").hide();
}
}
Danbooru.PostModeration.hide_or_show_delete_and_undelete_links = function() {
if (Danbooru.meta("post-is-deleted") == "true") {
if (Danbooru.meta("post-is-deleted") === "true") {
$("#delete").hide();
} else {
$("#undelete").hide();