Skip to content

Commit

Permalink
zip: move fullscreen.js to fix the zip previewer
Browse files Browse the repository at this point in the history
* the zip previewer still referenced fullscreen.js via its old location
* move the open_pdf.js as well, to not have a directory for a single
  file
  • Loading branch information
max-moser authored and utnapischtim committed Dec 10, 2024
1 parent da99cd9 commit e84812b
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion invenio_previewer/extensions/zip.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ def preview(file):
tree=list,
limit_reached=limit_reached,
error=error,
js_bundles=current_previewer.js_bundles + ["fullscreen_js.js"],
js_bundles=current_previewer.js_bundles,
css_bundles=current_previewer.css_bundles + ["zip_css.css"],
)
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions invenio_previewer/templates/invenio_previewer/pdfjs.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/pdfjs.css') }}" />
<script src="{{ url_for('static', filename='js/pdfjs/build/pdf.min.mjs') }}" type="module"></script>
<script src="{{ url_for('static', filename='js/pdfjs/web/pdf_viewer.mjs') }}" type="module"></script>
<script src="{{ url_for('static', filename='js/pdfjs/open_pdf.js') }}" defer></script>
<script src="{{ url_for('static', filename='js/pdfjs/fullscreen.js') }}" defer></script>
<script src="{{ url_for('static', filename='js/open_pdf.js') }}" defer></script>
<script src="{{ url_for('static', filename='js/fullscreen.js') }}" defer></script>
{%- endblock %}

{%- block page_body %}
Expand Down
1 change: 1 addition & 0 deletions invenio_previewer/templates/invenio_previewer/zip.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
border-radius: 3px;
}
</style>
<script src="{{ url_for('static', filename='js/fullscreen.js') }}" defer></script>
{%- endblock %}

{%- block panel %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

{%- block head %}
{{super()}}
<script src="{{ url_for('static', filename='js/fullscreen.js') }}" defer></script>
{%- endblock %}

{%- block panel %}
Expand Down

0 comments on commit e84812b

Please sign in to comment.