summaryrefslogtreecommitdiffstats
path: root/web_src/js/features
diff options
context:
space:
mode:
authorYarden Shoham <git@yardenshoham.com>2024-03-27 18:09:34 +0200
committerGitHub <noreply@github.com>2024-03-27 17:09:34 +0100
commit1a71dbfb7881f65d39b689a5be26cc94afefb10f (patch)
tree6df8b587a904193ad10ff9afd95d76e504a9e4a0 /web_src/js/features
parent34acd8e3767ec0898f90a74b64ac738d0ce05f0a (diff)
downloadgitea-1a71dbfb7881f65d39b689a5be26cc94afefb10f.tar.gz
gitea-1a71dbfb7881f65d39b689a5be26cc94afefb10f.zip
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>
Diffstat (limited to 'web_src/js/features')
-rw-r--r--web_src/js/features/comp/ReactionSelector.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/features/comp/ReactionSelector.js b/web_src/js/features/comp/ReactionSelector.js
index fc966c3985..2def3db51a 100644
--- a/web_src/js/features/comp/ReactionSelector.js
+++ b/web_src/js/features/comp/ReactionSelector.js
@@ -5,7 +5,7 @@ export function initCompReactionSelector($parent) {
$parent.find(`.select-reaction .item.reaction, .comment-reaction-button`).on('click', async function (e) {
e.preventDefault();
- if ($(this).hasClass('disabled')) return;
+ if (this.classList.contains('disabled')) return;
const actionUrl = this.closest('[data-action-url]')?.getAttribute('data-action-url');
const reactionContent = this.getAttribute('data-reaction-content');