]> source.dussan.org Git - gitea.git/commit
Add comment highlight when target from url (#9047)
authorjaqra <48099350+jaqra@users.noreply.github.com>
Mon, 25 Nov 2019 11:50:46 +0000 (14:50 +0300)
committerzeripath <art27@cantab.net>
Mon, 25 Nov 2019 11:50:46 +0000 (11:50 +0000)
commit802aa6d5f306ade08438dc07d93913daecb1d3ab
tree35df51e32026b160599c642aced5b6affe2889db
parent62bcb2b7f1ce1a64f828d94f045d06bd8605455a
Add comment highlight when target from url (#9047)

* Add comment highlight css

* Add js to remove highlight on click outside

* Improve refresh page on click outside

* Use location.hash property to remove target

* Handle click ONLY clicked outside of 'targetted comment' (not other comment)

* Remove unnecessary checks and simply code

* Combine hash and setState to remove target path
public/css/index.css
public/js/index.js
public/js/index.js.map
web_src/js/index.js
web_src/less/_repository.less