Commit 06ef9625f465fae4193802a07d534750a25af6eb
1 parent
f453f1a9
Exists in
master
and in
27 other branches
Fixed html and test syntax
(ActionItem3009)
Showing
3 changed files
with
6 additions
and
6 deletions
Show diff stats
app/views/account/_signup_form.rhtml
... | ... | @@ -191,7 +191,7 @@ jQuery(function($) { |
191 | 191 | }); |
192 | 192 | |
193 | 193 | function fill_username(element){ |
194 | - jQuery('#url-check').html('<p><span class=\"checking\"><%= _('This login name is available') %></span></p>') | |
194 | + jQuery('#url-check').html("<p><span class='checking'><%= _('This login name is available') %></span></p>") | |
195 | 195 | jQuery('#user_login').val(element).addClass('validated').removeClass('invalid') |
196 | 196 | } |
197 | 197 | </script> | ... | ... |
features/signup.feature
... | ... | @@ -52,9 +52,9 @@ Feature: signup |
52 | 52 | Given the following users |
53 | 53 | | login | name | |
54 | 54 | | joaosilva | joao silva | |
55 | - Given i am logged in as "joaosilva" | |
56 | - And i go to signup page | |
57 | - Then i should be on joaosilva's control panel | |
55 | + Given I am logged in as "joaosilva" | |
56 | + And I go to signup page | |
57 | + Then I should be on joaosilva's control panel | |
58 | 58 | |
59 | 59 | @selenium |
60 | 60 | Scenario: user cannot register without a name | ... | ... |
public/javascripts/signup_form.js
1 | 1 | function verifyLoginLoad() { |
2 | 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('<p><span class="checking"><%= _('Checking availability of login name...') %></span></p>'); | |
4 | 4 | } |
5 | 5 | |
6 | 6 | function verifyLoginAjax(value) { |
... | ... | @@ -20,4 +20,4 @@ jQuery(document).ready(function(){ |
20 | 20 | jQuery("#user_login").blur(function(){ |
21 | 21 | verifyLoginAjax(this.value); |
22 | 22 | }); |
23 | -}); | |
24 | 23 | \ No newline at end of file |
24 | +}); | ... | ... |