Issue 304: If you are already using $(form).submit() to validate a problem and using nyroForm then form validation can't stop form submit.
Status:  Fixed
Owner: ----
Closed:  Aug 2009
Reported by jeremy.d...@gmail.com, Aug 7, 2009
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
My bad, mis-typed the add code line, it should be:
  if(e.isDefaultPrevented()) return false;

 - Jeremy
Aug 10, 2009
Project Member #2 nyro...@gmail.com
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
Project Member #3 nyro...@gmail.com
The version 1.5.2 just released should fix this issue.

Status: Fixed