sailensd1 / jquery-plugin-form-navigation-confirmation

Automatically exported from code.google.com/p/jquery-plugin-form-navigation-confirmation
0 stars 0 forks source link

Issue on pages with multiple forms #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have a page with multiple forms 
2. Use the script on only one of the forms
3. Change data in the other form and try to navigate away

What is the expected output? What do you see instead?
When using the script it seems that changes to any input elements will set 
global_formNavigate to false.  I was able to correct this by changing line #33 
from:

$(this+ ":input[type=text], :input[type='textarea'], :input[type='password'], 
:input[type='radio'], :input[type='checkbox'], :input[type='file'], 
select").change(function(){

to

$(this).find(":input[type=text], :input[type='textarea'], 
:input[type='password'], :input[type='radio'], :input[type='checkbox'], 
:input[type='file'], select").change(function(){

What version of the product are you using? On what operating system?
Tested on OSX 10.6 (FireFox, Safari, Chrome)
WinXP in vm, (IE8, FF)

Please provide any additional information below.

If my explanation isn't clear feel free to contact me for more info.  smoils AT 
gmail

Original issue reported on code.google.com by smo...@gmail.com on 22 Jul 2010 at 6:52