Hide and show the openid field on the signup page correctly
This commit is contained in:
parent
e4f0d1f323
commit
fd08fbacb2
1 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@
|
|||
|
||||
<tr id="openid_spacer"><td colspan="2"> <!--vertical spacer--></td></tr>
|
||||
|
||||
<tr>
|
||||
<tr id="openid_field">
|
||||
<td class="fieldName"><%= t 'user.new.openid', :logo => openid_logo %></td>
|
||||
<td><%= text_field(:user, :openid_url, { :id => "openid_url", :size => 50, :maxlength => 255, :tabindex => 4, :value => params[:openid], :class => "openid_url" }) %></td>
|
||||
</tr>
|
||||
|
@ -59,7 +59,7 @@
|
|||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<span id="openid_prompt" class="minorNote"><%= link_to_function(t('user.new.use openid', :logo => openid_logo)) { |page| page.hide 'openid_prompt'; page.show 'openid_spacer', 'openid_url', 'openid_note' } %></span>
|
||||
<span id="openid_prompt" class="minorNote"><%= link_to_function(t('user.new.use openid', :logo => openid_logo)) { |page| page.hide 'openid_prompt'; page.show 'openid_spacer', 'openid_field', 'openid_note' } %></span>
|
||||
<span id="openid_note" class="minorNote"><%= t 'user.new.openid no password' %></span>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -79,7 +79,7 @@
|
|||
page[:openid_prompt].hide
|
||||
else
|
||||
page[:openid_spacer].hide
|
||||
page[:openid_url].hide
|
||||
page[:openid_field].hide
|
||||
page[:openid_note].hide
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue