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

Changed require syntax to fit jquery-ui-rails v<5.0 #2371

Conversation

HugsDaniel
Copy link
Contributor

What? Why?

Closes #2359

It seems that the require syntax for jquery-rails is not the one we used before (strange that it worked before with 2.x though). I replaced require jquery-ui with require jquery.ui.all in app/assets/javascripts/admin/all.js and app/assets/javascripts/darkswarm/all.js.coffee` and now it works fine. Also cart dropdown now appears.

What should we test?

In the navbar, when clicking Login, a modal should appear with the login form.
Also, the cart button should appear in the navbar and when clicking it, the cart dropdown should appear.

How is this related to the Spree upgrade?

Syntax for requiring jquery-ui has to be changed in order to have login modal and shopping cart dropdown working properly.

@HugsDaniel HugsDaniel changed the title Changed require syntax to fit jquery < 5.0 Changed require syntax to fit jquery-rails Jun 12, 2018
@HugsDaniel HugsDaniel requested review from sauloperez and mkllnk June 12, 2018 14:11
@HugsDaniel HugsDaniel changed the title Changed require syntax to fit jquery-rails Changed require syntax to fit jquery-ui-rails v<5.0 Jun 12, 2018
@sauloperez
Copy link
Contributor

sauloperez commented Jun 13, 2018

I just gave it a try and now I can log in and get to /admin! 🎉 Congrats @HugsDaniel !

@sauloperez sauloperez merged commit d5310ee into openfoodfoundation:2-0-stable Jun 13, 2018
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.

3 participants