loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove jQuery class from the reaction selector (#30138)

- Switched from jQuery class functions to plain JavaScript `classList`
- Tested the reaction selector and it works as before

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: Giteabot <teabot@gitea.io>
(cherry picked from commit 1a71dbfb7881f65d39b689a5be26cc94afefb10f)

authored by

Yarden Shoham
Giteabot
and committed by
Earl Warren
36ee0745 e10cae38

+1 -1
+1 -1
web_src/js/features/comp/ReactionSelector.js
··· 5 5 $parent.find(`.select-reaction .item.reaction, .comment-reaction-button`).on('click', async function (e) { 6 6 e.preventDefault(); 7 7 8 - if ($(this).hasClass('disabled')) return; 8 + if (this.classList.contains('disabled')) return; 9 9 10 10 const actionUrl = this.closest('[data-action-url]')?.getAttribute('data-action-url'); 11 11 const reactionContent = this.getAttribute('data-reaction-content');