diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 3c1ae26..1802e0c 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -30,19 +30,31 @@ module ApplicationHelper } end - def recaptcha_execute(action) - id = "recaptcha_token_#{SecureRandom.hex(10)}" - - raw %Q{ - - - } - end + def recaptcha_execute(action) + id = "recaptcha_token_#{SecureRandom.hex(10)}" + + raw %Q{ + + + } + end end diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index c991fba..88ed7a8 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -69,9 +69,7 @@ .dlg-inner .message='' %button.close=_'modals.done_button' - - if @login_dlg.present? - = content_for :recaptcha_js do - = include_recaptcha_js + - if @login_dlg.present? .dlg#login-dlg .dlg-content %h2.title=_'forms.actions.generic.login'