Skip to content

Commit

Permalink
Fix Javascript to focus the right element when taking attendance
Browse files Browse the repository at this point in the history
  • Loading branch information
gwolf committed May 20, 2016
1 parent d6f3b86 commit 3ade473
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/attendance_adm/take.html.erb
@@ -1,3 +1,4 @@

<h1><%= _'Take attendance' %></h1>
<p class="note">
<%= _('Taking attendance for session starting at %s, belonging '+
Expand All @@ -10,7 +11,7 @@
<%= submit_tag _('Save attendance') %>
<% end %>
<script language="JavaScript">
document.getElementById("take_attendance").elements[0].focus()
document.getElementById("person_id").focus()
</script>

<div id="last-attendances">
Expand Down

0 comments on commit 3ade473

Please sign in to comment.