Commit 181f44b4a6e589c95a0cc22871c8b32b512de6ae
1 parent
3371aaf9
Exists in
master
and in
29 other branches
Fixing edit usp id on profile basic information
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
plugins/stoa/public/javascripts/signup_complement.js
| ... | ... | @@ -11,13 +11,13 @@ jQuery("#usp_id_field").observe_field(1, function(){ |
| 11 | 11 | jQuery('#signup-birth-date').hide(); |
| 12 | 12 | jQuery('#signup-cpf').show(); |
| 13 | 13 | jQuery('#confirmation_field').remove(); |
| 14 | - jQuery('#signup-form').append('<input id="confirmation_field" type="hidden" value="cpf" name="confirmation_field">') | |
| 14 | + jQuery('<input id="confirmation_field" type="hidden" value="cpf" name="confirmation_field">').insertAfter('#usp_id_field'); | |
| 15 | 15 | } |
| 16 | 16 | else { |
| 17 | 17 | jQuery('#signup-cpf').hide(); |
| 18 | 18 | jQuery('#signup-birth-date').show(); |
| 19 | 19 | jQuery('#confirmation_field').remove(); |
| 20 | - jQuery('#signup-form').append('<input id="confirmation_field" type="hidden" value="birth_date" name="confirmation_field">') | |
| 20 | + jQuery('<input id="confirmation_field" type="hidden" value="birth_date" name="confirmation_field">').insertAfter('#usp_id_field'); | |
| 21 | 21 | } |
| 22 | 22 | jQuery('#signup-form .submit').attr('disabled', false); |
| 23 | 23 | jQuery(me).removeClass('checking').addClass('validated'); | ... | ... |