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
All checks were successful
Web/pipeline/head This commit looks good
This commit is contained in:
parent
a26f393f72
commit
e18309a65f
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ function openCategory(name) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// show or hide "no archived posts" text
|
// 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
|
// disable the shown category's button
|
||||||
$(`.blog-cat-button`).each(function () {
|
$(`.blog-cat-button`).each(function () {
|
||||||
$(this).attr("disabled", $(this).attr("id") == name);
|
$(this).attr("disabled", $(this).attr("id") == name);
|
||||||
|
|
Loading…
Reference in a new issue