Swap #0 in link-btn for js:void(0)

This commit is contained in:
Alwinfy 2022-05-22 10:17:35 -04:00
parent 8be1600091
commit 955b6c2a09
No known key found for this signature in database
GPG key ID: 2CCB99445F0C949E

View file

@ -506,7 +506,7 @@ def write_category(out, book, category):
def write_toc(out, book):
with out.pair_tag("h2", id="table-of-contents", clazz="page-header"):
out.text("Table of Contents")
with out.pair_tag("a", href="#0", clazz="toggle-link small", data_target="toc-category"):
with out.pair_tag("a", href="javascript:void(0)", clazz="toggle-link small", data_target="toc-category"):
out.text("(toggle all)")
with out.pair_tag("a", href="#table-of-contents", clazz="permalink small"):
out.empty_pair_tag("i", clazz="bi bi-link-45deg")