| Issue 304: | If you are already using $(form).submit() to validate a problem and using nyroForm then form validation can't stop form submit. | |
| 2 people starred this issue and may be notified of changes. | Back to list |
I don't know exactly how to explain this, but I am using a javascript form
validator on a nyro popup window. The validator sets the
event.preventDefault and returns false, but nyro keeps on processing and
posts the form anyways.
Took a while of digging, but I found the solution is to check the
event.isDefaultPrevented inside the nyroModal form submit handler and
return false if it is set.
Fix:
91) .bind('submit.nyroModal', function(e) {
add) if(e.isDefaultPrevented) return false;
92) if (me.data('nyroModalprocessing'))
93) return true;
What version of the product are you using? On what operating system?
Lastest from google
Aug 7, 2009
#1
jeremy.d...@gmail.com
Aug 10, 2009
wooh, thanks for the tip! This problem was already sent and I didn't find out we can do this way. Your tip will be included in the next release as well as for all others elements like simple link.
Status:
Accepted
Labels: Type-Enhancement
Aug 14, 2009
The version 1.5.2 just released should fix this issue.
Status:
Fixed
|