Commit 74d4317a236f940304a4a8cc5e8ce54ab9feb516
Exists in
master
and in
29 other branches
Merge commit 'refs/merge-requests/212' of git://gitorious.org/noosfero/noosfero …
…into merge-requests/212
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,13 +11,13 @@ jQuery("#usp_id_field").observe_field(1, function(){ | ||
11 | jQuery('#signup-birth-date').hide(); | 11 | jQuery('#signup-birth-date').hide(); |
12 | jQuery('#signup-cpf').show(); | 12 | jQuery('#signup-cpf').show(); |
13 | jQuery('#confirmation_field').remove(); | 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 | else { | 16 | else { |
17 | jQuery('#signup-cpf').hide(); | 17 | jQuery('#signup-cpf').hide(); |
18 | jQuery('#signup-birth-date').show(); | 18 | jQuery('#signup-birth-date').show(); |
19 | jQuery('#confirmation_field').remove(); | 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 | jQuery('#signup-form .submit').attr('disabled', false); | 22 | jQuery('#signup-form .submit').attr('disabled', false); |
23 | jQuery(me).removeClass('checking').addClass('validated'); | 23 | jQuery(me).removeClass('checking').addClass('validated'); |