]> source.dussan.org Git - gitea.git/commit
Remove jQuery from username change prompt and fix its detection (#29197)
authorYarden Shoham <git@yardenshoham.com>
Fri, 16 Feb 2024 15:52:50 +0000 (17:52 +0200)
committerGitHub <noreply@github.com>
Fri, 16 Feb 2024 15:52:50 +0000 (15:52 +0000)
commit0768842ef56758b3290406656c5ebbd605358f6e
tree0a0a6e0d8a2426f53de4be587489bebd76c24f58
parent5902372e63db2d3f31150251dfffdb305fa9aaee
Remove jQuery from username change prompt and fix its detection (#29197)

- Switched to plain JavaScript
- Tested the user rename prompt toggling functionality and it works as
before
- Fixed bug that allowed pasting with the mouse to avoid the prompt

# Before

![before](https://github.com/go-gitea/gitea/assets/20454870/aa300ad7-612b-461e-bbb2-3f74b3b83ede)

# After

![after](https://github.com/go-gitea/gitea/assets/20454870/f2b5a51b-7b39-43c7-8a4a-62f1f77acae4)

---------

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: silverwind <me@silverwind.io>
web_src/js/features/user-settings.js