-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Replace frontend jquery validations with html5 #2264
Merged
jhawthorn
merged 7 commits into
solidusio:master
from
cbrunsdon:html5-validations-1548-rebase
Nov 21, 2017
Merged
Replace frontend jquery validations with html5 #2264
jhawthorn
merged 7 commits into
solidusio:master
from
cbrunsdon:html5-validations-1548-rebase
Nov 21, 2017
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jhawthorn
approved these changes
Oct 13, 2017
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.
👍
tvdeyen
approved these changes
Oct 25, 2017
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.
We need a changelog because stores might rely on jQuery validate
Otherwise I am very much pro this 🚀
jhawthorn
changed the title
Add html validations from #1548
Replace frontend jquery validations with html5
Oct 26, 2017
Also only "require" it if its required in the schema.
Its a nice-to-have, but we validate it in the backend and the accompanying javascript is too zaney to want to deal with here.
As we've switched to html5 vlaidations, this is no longer necessary.
We have validations now, so we need it.
When other payment options (or methods) are rendered, these fields might not be used, but it would block the submission of the form. We're opting to rip this out entirely and leaving it up to stores. They can include jquery-validate, ignore this, or handle it otherwise.
jhawthorn
force-pushed
the
html5-validations-1548-rebase
branch
from
November 20, 2017 23:27
ed6fadc
to
f010939
Compare
kennyadsl
added a commit
to nebulab/solidus
that referenced
this pull request
Nov 22, 2017
We didn't have required on lastname before solidusio#2264. Also, we don't need the required span with * since that field is not actually required.
This was referenced Nov 22, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This rebases #1548 to remove the pattern regex (which we don't expect to get right), and kill the validations on the state (which is checked in the backend and too complicated to do right in this PR).