mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 06:03:51 +03:00
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)
This commit is contained in:
parent
e10cae3862
commit
36ee0745cc
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue