Use javascript to automatically submit confirmation forms
[rails.git] / app / views / user / confirm.html.erb
1 <script>
2 $("content").style.display = "none";
3 </script>
4
5 <h1><%= t 'user.confirm.heading' %></h1>
6
7 <p><%= t 'user.confirm.press confirm button' %></p>
8
9 <form id="confirm" method="post">
10   <input type="hidden" name="confirm_string" value="<%= params[:confirm_string] %>">
11   <input type="submit" name="confirm_action" value="<%= t 'user.confirm.button' %>">
12 </form>
13
14 <script>
15 $("confirm").submit();
16 </script>