diff options
Diffstat (limited to 'app/views/request/preview.rhtml')
-rw-r--r-- | app/views/request/preview.rhtml | 33 |
1 files changed, 2 insertions, 31 deletions
diff --git a/app/views/request/preview.rhtml b/app/views/request/preview.rhtml index 38cbf24f0..45b6a3dc1 100644 --- a/app/views/request/preview.rhtml +++ b/app/views/request/preview.rhtml @@ -1,24 +1,3 @@ -<% if !@user %> -<%= javascript_include_tag 'jquery.fancybox-1.3.4.pack' %> -<script> - $(document).ready(function() { - $("#submit_button").fancybox({ - 'modal': false, - 'width': 960, - 'height': 500, - 'type': 'iframe', - 'href': '/en/profile/sign_in?modal=1', - 'onClosed': function() { - // modal_signin_successful variable set by modal dialog box - if (typeof modal_signin_successful != 'undefined' ) { - $("#hidden_submit_button").click(); - } - } - }); - }); -</script> -<% end %> - <% @title = "Preview new " + h(@info_request.law_used_short) + " request to '" + h(@info_request.public_body.name) + "'" %> <% form_for(:info_request, @info_request, :html => { :id => 'preview_form' } ) do |f| %> @@ -59,19 +38,11 @@ <%= hidden_field_tag(:submitted_new_request, 1) %> <%= hidden_field_tag(:preview, 0 ) %> <%= submit_tag _("Edit this request"), :name => 'reedit', :id => 'reedit_button' %> - <%= submit_tag _("Send request"), :name => 'submit', :id => 'submit_button' %> - - <!-- Since FancyBox is intercepting the click event to display the modal login form, - and I can't find a way of accessing the underlying default behaviour of the button, - we hide another submit button without FancyBox, to be called programatically. - Feels hacky. --> - <div style="visibility: hidden"> - <%= submit_tag _("Send request"), :name => 'submit', :id => 'hidden_submit_button' %> - </div> + <%= submit_tag _("Send request"), :name => 'submit', :id => 'submit_button' %> </p> <% if !@info_request.tag_string.empty? %> <p><strong><%= _('Tags:') %></strong> <%=h @info_request.tag_string %></p> <% end %> -<% end %> +<% end %>
\ No newline at end of file |