]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user/confirm.html.erb
Merge branch 'master' of git://git.openstreetmap.org/rails into openstreetbugs2
[rails.git] / app / views / user / confirm.html.erb
index 5a4106ee395d441efd59b6463f30d9e40a6e42ea..408ba771fc510e7244276709a9f0c4db18851e57 100644 (file)
@@ -1,10 +1,17 @@
+<script>
+$("content").style.display = "none";
+</script>
+
 <h1><%= t 'user.confirm.heading' %></h1>
 
 <p><%= t 'user.confirm.press confirm button' %></p>
 
-<form method="post">
-<input type="hidden" name="confirm_string" value="<%= params[:confirm_string] %>">
-<input type="submit" name="confirm_action" value="<%= t 'user.confirm.button' %>">
+<form id="confirm" method="post">
+  <input type="display_name" name="confirm_string" value="<%= params[:display_name] %>">
+  <input type="hidden" name="confirm_string" value="<%= params[:confirm_string] %>">
+  <input type="submit" name="confirm_action" value="<%= t 'user.confirm.button' %>">
 </form>
 
-
+<script>
+$("confirm").submit();
+</script>