Merge pull request #4515 from fubik/develop

Disables submit button in sign up form after submission to avoid email already exists error
This commit is contained in:
Fabian Rodriguez 2013-09-12 14:32:55 -07:00
commit 1dbf9642c8
4 changed files with 4 additions and 2 deletions

View file

@ -17,6 +17,7 @@
* Adjust 404 message description to not leak logged out users if a post exists or not [#4477](https://github.com/diaspora/diaspora/pull/4477) * Adjust 404 message description to not leak logged out users if a post exists or not [#4477](https://github.com/diaspora/diaspora/pull/4477)
* Make I18n system more robust against missing keys in pluralization data * Make I18n system more robust against missing keys in pluralization data
* Prevent overflow of too long strings in the single post view [#4487](https://github.com/diaspora/diaspora/pull/4487) * Prevent overflow of too long strings in the single post view [#4487](https://github.com/diaspora/diaspora/pull/4487)
* Disable submit button in sign up form after submission to avoid email already exists error [#4506](https://github.com/diaspora/diaspora/issues/4506)
## Features ## Features
* Add oEmbed content to the mobile view [#4343](https://github.com/diaspora/diaspora/pull/4353) * Add oEmbed content to the mobile view [#4343](https://github.com/diaspora/diaspora/pull/4353)

View file

@ -63,7 +63,7 @@
<%= invite_hidden_tag(invite) %> <%= invite_hidden_tag(invite) %>
</fieldset> </fieldset>
<%= f.submit t('.continue'), :class => "new-btn" %> <%= f.submit t('.continue'), :class => "new-btn", :disable_with => t('.submitting') %>
<% end %> <% end %>
</div> </div>
</div> </div>

View file

@ -45,7 +45,7 @@
= f.password_field :password_confirmation, :placeholder => "••••••••" = f.password_field :password_confirmation, :placeholder => "••••••••"
.controls .controls
= f.submit t('registrations.new.create_my_account'), :class => 'btn primary' = f.submit t('registrations.new.create_my_account'), :class => 'btn primary', :disable_with => t('registrations.new.submitting')
= link_to t('devise.sessions.new.sign_in'), new_user_session_path(), :class => 'btn primary', :style => "float: right;" = link_to t('devise.sessions.new.sign_in'), new_user_session_path(), :class => 'btn primary', :style => "float: right;"
%footer %footer

View file

@ -894,6 +894,7 @@ en:
password: "PASSWORD" password: "PASSWORD"
password_confirmation: "PASSWORD CONFIRMATION" password_confirmation: "PASSWORD CONFIRMATION"
continue: "Continue" continue: "Continue"
submitting: "Submitting..."
create: create:
success: "You've joined Diaspora!" success: "You've joined Diaspora!"
edit: edit: