Fix wicked_pdf asset pipeline [SCI-8684] (#5629)

Co-authored-by: Sboursen <dev.sboursen@gmail.com>
This commit is contained in:
Soufiane 2023-06-21 10:42:27 +02:00 committed by GitHub
parent d686d746cb
commit 8b8fd1db42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View file

@ -23,4 +23,4 @@ function pageNumbers() {
});
}
$('#reports-footer-header-template').on('load', pageNumbers);
pageNumbers();

View file

@ -2,10 +2,9 @@
<html>
<head>
<meta charset='utf-8' />
<%= javascript_include_tag wicked_pdf_asset_base64("reports/template_helpers") %>
</head>
<body id="reports-footer-header-template">
<%= javascript_include_tag 'reports/template_helpers' %>
<body>
<%= yield %>
<%= javascript_include_tag wicked_pdf_asset_base64("reports/template_helpers") %>
</body>
</html>