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

Use backbone StateSelect view for stock locations form #2542

Merged
merged 2 commits into from
Feb 5, 2018

Conversation

jhawthorn
Copy link
Contributor

@jhawthorn jhawthorn commented Jan 31, 2018

This was using the old update_state function which was no longer used by the customer address page. It worked okay, but was pretty clunky.

This commit changes the stock locations page to use the same Views.StateSelect backbone view that the customer details page uses. This allows removing the inline JS on that page, and removes the last
use of the update_state global.

This also makes the behaviour of Views.StateSelect better when no country is selected. It now shows the state selector in a disabled state.


@jhawthorn jhawthorn added the changelog:solidus_backend Changes to the solidus_backend gem label Jan 31, 2018
This was using the old update_state function which was no longer used by
the customer address page. It worked okay, but was pretty clunky.

This commit changes the stock locations page to use the same
Views.StateSelect backbone view that the customer details page uses.
This allows removing the inline JS on that page, and removes the last
use of the update_state global.

This also makes the behaviour of Views.StateSelect better when no
country is selected. It now shows the state selector in a disabled
state.
Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

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

Great, thanks!

@jhawthorn jhawthorn merged commit a21d5a0 into solidusio:master Feb 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:solidus_backend Changes to the solidus_backend gem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants