From e18309a65f5041331da75240703e853874b5a1fe Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 27 Sep 2021 04:12:28 +0200 Subject: [PATCH] fixed the "there are no archived posts" text being displayed under the wrong conditions in the All category --- main/scripts/blog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/scripts/blog.js b/main/scripts/blog.js index 8cc7f7e..1f2d739 100644 --- a/main/scripts/blog.js +++ b/main/scripts/blog.js @@ -29,7 +29,7 @@ function openCategory(name) { } }); // show or hide "no archived posts" text - $("#no-archived-posts").attr("hidden", all || $("#blog-archive").children(`.blog-tag-${name}`).length > 0); + $("#no-archived-posts").attr("hidden", $("#blog-archive").children(all ? "*" : `.blog-tag-${name}`).length > 0); // disable the shown category's button $(`.blog-cat-button`).each(function () { $(this).attr("disabled", $(this).attr("id") == name);