]> source.dussan.org Git - gitea.git/commit
Use more specific selector for `name` links (#29679) (#29681)
authorGiteabot <teabot@gitea.io>
Sat, 9 Mar 2024 00:40:05 +0000 (08:40 +0800)
committerGitHub <noreply@github.com>
Sat, 9 Mar 2024 00:40:05 +0000 (08:40 +0800)
commit25b0c99a41e9024d439deaa55be7ba87f6cd557f
tree52f38373ebfa0423649b66d91bbcf9b765cf9b65
parentbfc7c8a5985825ec28f3feefe1d050ec52525097
Use more specific selector for `name` links (#29679) (#29681)

Backport #29679 by @silverwind

Followup https://github.com/go-gitea/gitea/pull/29305. As per discussion
in https://github.com/go-gitea/gitea/pull/29666#discussion_r1517506422,
make this selector only search in the current `.markup` document, as
there can be multiples displayed at the same time.

@DanielMatiasCarvalho maybe you can review.

Co-authored-by: silverwind <me@silverwind.io>
web_src/js/markup/anchors.js