diff options
author | Santos Gallegos <stsewd@protonmail.com> | 2022-03-07 13:31:18 -0500 |
---|---|---|
committer | Santos Gallegos <stsewd@protonmail.com> | 2022-03-07 13:31:18 -0500 |
commit | a7d6ae05edcca80a98b47a7c61c2a076b9b1c1d3 (patch) | |
tree | e613a6a56e2c05f75a24f84f5c8c181b2c6078df /tests/test_util_fileutil.py | |
parent | ee298ac47e10c6c3d38ac63de8bc9c6a45367839 (diff) | |
download | sphinx-git-a7d6ae05edcca80a98b47a7c61c2a076b9b1c1d3.tar.gz |
doctools: fix shortcuts
Previous code was using JQuery to add the listeners
https://github.com/sphinx-doc/sphinx/blob/b3812f72a98b01bae4b1158761082edc46cfa87f/sphinx/themes/basic/static/doctools.js#L304
Looks like by convention returning false mean preventDefault,
but now with pure js this needs to be called explicitly.
And a couple of fixes with the selectors.
- querySelectorAll is an array-like object, it doesn't have a first()
method.
- nextLink was being assigned the `href` attribute instead of the
object itself.
Diffstat (limited to 'tests/test_util_fileutil.py')
0 files changed, 0 insertions, 0 deletions