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 commit button (#30178)

- Switched from jQuery class functions to plain JavaScript `classList`
- Tested the commit button disabled toggling functionality and it works
as before

---------

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

authored by

Yarden Shoham
silverwind
Giteabot
and committed by
Gergely Nagy
0f1bd1be ecc78da5

+2 -2
+2 -2
web_src/js/features/repo-editor.js
··· 147 147 silent: true, 148 148 dirtyClass: dirtyFileClass, 149 149 fieldSelector: ':input:not(.commit-form-wrapper :input)', 150 - change() { 151 - const dirty = $(this).hasClass(dirtyFileClass); 150 + change($form) { 151 + const dirty = $form[0]?.classList.contains(dirtyFileClass); 152 152 commitButton.disabled = !dirty; 153 153 }, 154 154 });