]> source.dussan.org Git - gitea.git/commit
Fix scrolling to resolved comment anchors (#13343)
authorzeripath <art27@cantab.net>
Sat, 31 Oct 2020 04:35:35 +0000 (04:35 +0000)
committerGitHub <noreply@github.com>
Sat, 31 Oct 2020 04:35:35 +0000 (00:35 -0400)
commitffc8ce7baef0715bdc2d04cfc1e18379426a1e89
treeeb6e338b27f31bb60ed1a3d1bcf7edf3df30da51
parent6c323678d0a0872825e90d1339db802ebce3fb76
Fix scrolling to resolved comment anchors (#13343)

* Fix scrolling to resolved comment anchors

As described on discord, when the window.location.hash refers to a
resolved comment then the scroll to functionality does not work.

This PR fixes this.

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Apply suggestions from code review

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
web_src/js/index.js