aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cabo <david@calibea.com>2011-08-23 02:31:20 +0200
committerDavid Cabo <david@calibea.com>2011-08-23 02:31:20 +0200
commit6e2f34a888b99cc9b84b8ec158d6cbb4b76e47f6 (patch)
treec98cddf77cb34be78bf55ab120e7235d23bcd737
parentd9948091967123ca7e9d986d6ebaf4b6226b27f3 (diff)
Remove modal sign-in from New Request page
-rw-r--r--app/views/request/new.rhtml42
1 files changed, 0 insertions, 42 deletions
diff --git a/app/views/request/new.rhtml b/app/views/request/new.rhtml
index 5ddec100f..cd748b6c2 100644
--- a/app/views/request/new.rhtml
+++ b/app/views/request/new.rhtml
@@ -9,47 +9,6 @@
});
</script>
-<%
- enable_modal_signin = false;
-%>
-
-<% if enable_modal_signin && !@user %>
-<%= javascript_include_tag 'jquery.fancybox-1.3.4.pack' %>
-<%= javascript_include_tag 'jquery.form' %>
-<script>
- function onSuccessfulLogin() {
- $.fancybox.close();
- $("#write_form").ajaxFormUnbind();
- $("#write_form").submit();
- }
-
- function interceptFormSubmit(form_id) {
- $(form_id).ajaxForm({
- success: function(responseText) {
- $("#fancybox-content").html(responseText);
- interceptFormSubmits();
- }
- });
- };
-
- function interceptFormSubmits() {
- interceptFormSubmit("#signin_form");
- interceptFormSubmit("#signup_form");
- };
-
- $(document).ready(function() {
- $("#write_form").ajaxForm({
- success: function(responseText) {
- $.fancybox({
- 'content': responseText,
- 'onComplete': interceptFormSubmits
- });
- }
- });
- });
-</script>
-<% end %>
-
<% @title = _("Make an {{law_used_short}} request to '{{public_body_name}}'",:law_used_short=>h(@info_request.law_used_short),:public_body_name=>h(@info_request.public_body.name)) %>
<% if @existing_request %>
@@ -170,7 +129,6 @@
<%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %>
<%= hidden_field_tag(:submitted_new_request, 1 ) %>
<%= hidden_field_tag(:preview, 1 ) %>
- <%= hidden_field_tag(:modal, 1 ) if enable_modal_signin %>
<%= submit_tag _("Preview your public request") %>
</div>