-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove jQuery from organization rename prompt toggle #29195
Remove jQuery from organization rename prompt toggle #29195
Conversation
- Switched to plain JavaScript - Tested the organization rename prompt toggling functionality and it works as before Signed-off-by: Yarden Shoham <git@yardenshoham.com>
const orgNameInput = document.querySelector('.organization.settings.options #org_name'); | ||
if (!orgNameInput) return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wait .... it seem incorrect .....
There is another call initCompLabelEdit
below. It shouldn't return here.
So the old logic (like if ($('.organization').length === 0) {
) is still needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right, reverting.
This reverts commit 08b21e8.
84a8a3c
to
b7dcec6
Compare
Co-authored-by: silverwind <me@silverwind.io>
@yardenshoham please fix the merge conflicts. 🍵 |
No, this is still not right. https://github.com/go-gitea/gitea/pull/29195/files#r1492567342 It shouldn't return there, there is another call below: @silverwind @yardenshoham it needs a following fix. |
Sorry, I thought that was handled, @yardenshoham please follow-up. |
I'm on it |
Fix broken `if` from #29195 Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Fix broken `if` from go-gitea/gitea#29195 Signed-off-by: Yarden Shoham <git@yardenshoham.com> (cherry picked from commit 2d8756a9607ee6029ad7a44985e9751988d5fdaa)
- Switched to plain JavaScript - Tested the organization rename prompt toggling functionality and it works as before # Demo using JavaScript without jQuery ![action](https://github.com/go-gitea/gitea/assets/20454870/e6f641b0-aa46-4b85-9693-0d608cca855e) --------- Signed-off-by: Yarden Shoham <git@yardenshoham.com> Co-authored-by: silverwind <me@silverwind.io>
Fix broken `if` from go-gitea#29195 Signed-off-by: Yarden Shoham <git@yardenshoham.com>
- Switched to plain JavaScript - Tested the organization rename prompt toggling functionality and it works as before # Demo using JavaScript without jQuery ![action](https://github.com/go-gitea/gitea/assets/20454870/e6f641b0-aa46-4b85-9693-0d608cca855e) --------- Signed-off-by: Yarden Shoham <git@yardenshoham.com> Co-authored-by: silverwind <me@silverwind.io> (cherry picked from commit 5902372)
Automatically locked because of our CONTRIBUTING guidelines |
Demo using JavaScript without jQuery