diff --git a/app/assets/javascripts/reports/template_helpers.js b/app/assets/javascripts/reports/template_helpers.js index f9fd796e9..70699a2e7 100644 --- a/app/assets/javascripts/reports/template_helpers.js +++ b/app/assets/javascripts/reports/template_helpers.js @@ -23,4 +23,4 @@ function pageNumbers() { }); } -$('#reports-footer-header-template').on('load', pageNumbers); +pageNumbers(); diff --git a/app/views/layouts/reports/footer_header.html.erb b/app/views/layouts/reports/footer_header.html.erb index 7d898ddb3..dc172d968 100644 --- a/app/views/layouts/reports/footer_header.html.erb +++ b/app/views/layouts/reports/footer_header.html.erb @@ -2,10 +2,9 @@
- <%= javascript_include_tag wicked_pdf_asset_base64("reports/template_helpers") %> - - <%= javascript_include_tag 'reports/template_helpers' %> + <%= yield %> + <%= javascript_include_tag wicked_pdf_asset_base64("reports/template_helpers") %>