focus certain text boxes on load where appropriate; minor tweaks
This commit is contained in:
parent
7858dcd212
commit
e47a054e75
|
@ -28,3 +28,9 @@
|
|||
</p>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#email").focus();
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
<div class="box wide">
|
||||
<div style="float: right;">
|
||||
<a href="/u/<%= @user.username %>">View Profile</a>
|
||||
</div>
|
||||
|
||||
<div class="legend">
|
||||
Invite a New User
|
||||
</div>
|
||||
|
@ -27,7 +23,7 @@
|
|||
<br>
|
||||
|
||||
<div class="legend">
|
||||
Account Settings
|
||||
Account Settings (<a href="/u/<%= @user.username %>">View Profile</a>)
|
||||
</div>
|
||||
|
||||
<%= form_for @edit_user, :url => settings_url, :method => :post do |f| %>
|
||||
|
|
|
@ -24,3 +24,9 @@
|
|||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#story_url").focus();
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -1,10 +1,4 @@
|
|||
<div class="box wide">
|
||||
<% if @user && @user.id == @showing_user.id %>
|
||||
<div style="float: right;">
|
||||
<a href="/settings">Edit Settings</a>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="legend">
|
||||
<%= @showing_user.username %>
|
||||
</div>
|
||||
|
@ -18,7 +12,6 @@
|
|||
<label class="required">Joined:</label>
|
||||
<span class="d">
|
||||
<%= time_ago_in_words(@showing_user.created_at) %> ago
|
||||
(<%= @showing_user.created_at.strftime("%Y-%m-%d") %>)
|
||||
</span>
|
||||
<br>
|
||||
|
||||
|
|
Loading…
Reference in a new issue