]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user/confirm_email.html.erb
Allow commenting on, and closing of, notes from the web site
[rails.git] / app / views / user / confirm_email.html.erb
index 16e718a4ab4e33886eabcbe4580c012f6f82af84..5efc6a2c533dca97d9a6c40e8784d28fd9e36eee 100644 (file)
@@ -1,8 +1,16 @@
+<script>
+$("#content").hide();
+</script>
+
 <h1><%= t 'user.confirm_email.heading' %></h1>
 
 <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>
+<%= form_tag({}, { :id => "confirm" }) do %>
+  <input type="hidden" name="confirm_string" value="<%= params[:confirm_string] %>">
+  <input type="submit" name="confirm_action" value="<%= t 'user.confirm_email.button' %>">
+<% end %>
+
+<script>
+$("#confirm").submit();
+</script>