Commit b926918cb933d2522f3eca24e9fee6d071855a2b

Authored by Daniela Feitosa
1 parent 9d1c39c1

Allowing translation for url checking string

(ActionItem3009)
app/views/account/_signup_form.rhtml
@@ -37,6 +37,7 @@ @@ -37,6 +37,7 @@
37 <%= required text_field(:user, :login, :id => 'user_login', 37 <%= required text_field(:user, :login, :id => 'user_login',
38 :onchange => 'this.value = convToValidUsername(this.value);') %> 38 :onchange => 'this.value = convToValidUsername(this.value);') %>
39 <div id='url-check'><p>&nbsp;</p></div> 39 <div id='url-check'><p>&nbsp;</p></div>
  40 + <span id='checking-message' class='checking' style='display:none'><%= _('Checking availability of login name...') %></span>
40 </div> 41 </div>
41 <%= content_tag(:small, _('Choose your login name carefully! It will be your network access and you will not be able to change it later.'), :id => 'signup-balloon') %> 42 <%= content_tag(:small, _('Choose your login name carefully! It will be your network access and you will not be able to change it later.'), :id => 'signup-balloon') %>
42 <br style="clear: both;" /> 43 <br style="clear: both;" />
public/javascripts/signup_form.js
1 function verifyLoginLoad() { 1 function verifyLoginLoad() {
2 jQuery('#user_login').removeClass('available unavailable valid validated invalid checking').addClass('checking'); 2 jQuery('#user_login').removeClass('available unavailable valid validated invalid checking').addClass('checking');
3 - jQuery('#url-check').html("<p><span class='checking'><%= _('Checking availability of login name...') %></span></p>"); 3 + jQuery('#url-check').html(jQuery('#checking-message').html());
4 } 4 }
5 5
6 function verifyLoginAjax(value) { 6 function verifyLoginAjax(value) {