-
-
Notifications
You must be signed in to change notification settings - Fork 149
netteForms.js: Show all error messages at once #65
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
Conversation
/** | ||
* Shows an alert. | ||
*/ | ||
Nette.alert = function(message) { |
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.
I've added this while I'm working on "show all messages at once".
Tt would be nice to have an option redefine "show alert" function and create custom handlers.
131f7d2
to
532059a
Compare
Conflicts: src/assets/netteForms.js
I've updated the PR and resolved merge conflicts with current It changes current behavior of error alerts, see my original comment. Client can override |
👍 for showing all errors at once |
@janedbal I don't like (as common web user) one-by-one error. Instead of repair error, send form, get another error, repair another error, send form, ... |
4b40023
to
6313660
Compare
a57a557
to
55d0eb8
Compare
9e359e6
to
fa84d63
Compare
3c1619a
to
31bc0a3
Compare
6b04b51
to
d1c30d6
Compare
2b19f43
to
fd381fb
Compare
81549c5
to
98832d3
Compare
2b44619
to
4473513
Compare
Merged, thanks. |
Nette shows only the first form error. And after user reparation shows the next error etc.
I think show all errors at once is more user friendly.
So I've created PR which adds this behavior.
I think it will be necessary work on it before merge (eg. add options like "show one by one error"/"show all errors at once").
What do you think about that?