Skip to content
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

Fix JS after conversion from CoffeeScript #1062

Merged
merged 3 commits into from
Dec 8, 2023
Merged

Conversation

texpert
Copy link
Collaborator

@texpert texpert commented Nov 12, 2023

Fixes #1053

Changes

  • Fixed the #switch_nav_menu_form div id in the nav_menu, which has been messed on Decaffeinate
  • Removed unnecessary code created because of implicit returns, as suggested by Decaffeinate
  • Specs added for creating and selecting menus
  • Fixed some emerged Rubocop issues
  • Updated .rubocop_todo.yml

@texpert texpert self-assigned this Nov 12, 2023
Copy link
Collaborator

@brian-kephart brian-kephart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Ruby parts of this look good.

The JS parts look good, I think. The whole jQuery-ness of it all is throwing me off a little bit, it's been awhile. 😅 I don't think any of those explicit returns were necessary, and it looks to me like some of them could actually be harmful, so good change.

@texpert texpert merged commit 71c864d into owen2345:master Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Menu selection not working
2 participants