fixed the "there are no archived posts" text being displayed under the wrong conditions in the All category
All checks were successful
Web/pipeline/head This commit looks good

This commit is contained in:
Ell 2021-09-27 04:12:28 +02:00
parent a26f393f72
commit e18309a65f

View file

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