docvego/RescueRails — Issue #10: Submit button on Adopt app Broken
Author: docvego
Created: 2011-12-16 20:00:41+00:00
State: open
Labels: Defect

Submit button isn't submitting the adoption form. Remove tweak to the wizard vendor script, and add this to app's code:

//This should disable the submit button once the adoption app is submitted, to prevent a 2nd click
$('#new_adopter').submit(function(){
$(this).children('input[type=submit]').attr('disabled', 'disabled');
$(this).children('input[type=reset]').attr('disabled', 'disabled');
$(this).children('input[type=submit]').addClass("disabled");
$(this).children('input[type=reset]').addClass("disabled");
});