]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user/confirm_email.html.erb
Rework notes interface using OpenLayers and rails
[rails.git] / app / views / user / confirm_email.html.erb
index b9bd97fcd7e94491ec8a6804f385a444e8020efc..fd17ef08a656b49a3e3ace8987b23d8b6cee2e32 100644 (file)
@@ -1,8 +1,16 @@
+<script>
+$("content").style.display = "none";
+</script>
+
 <h1><%= t 'user.confirm_email.heading' %></h1>
 
-<p><%= t 'user.confirm_email. press confirm button' %></p>
+<p><%= t 'user.confirm_email.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_email.button' %>">
+<form id="confirm" method="post">
+  <input type="hidden" name="confirm_string" value="<%= params[:confirm_string] %>">
+  <input type="submit" name="confirm_action" value="<%= t 'user.confirm_email.button' %>">
 </form>
+
+<script>
+$("confirm").submit();
+</script>