focus certain text boxes on load where appropriate; minor tweaks

This commit is contained in:
joshua stein 2012-07-03 19:18:21 -05:00
parent 7858dcd212
commit e47a054e75
4 changed files with 13 additions and 12 deletions

View file

@ -28,3 +28,9 @@
</p>
<% end %>
</div>
<script>
$(document).ready(function() {
$("#email").focus();
});
</script>

View file

@ -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| %>

View file

@ -24,3 +24,9 @@
</div>
<% end %>
</div>
<script>
$(document).ready(function() {
$("#story_url").focus();
});
</script>

View file

@ -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>