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

This commit is contained in:
Ell 2021-09-27 04:12:28 +02:00
parent a26f393f72
commit e18309a65f
1 changed files with 1 additions and 1 deletions

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