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);