Skip to content

Commit

Permalink
Merge pull request #1183 from J9rem/fix/pdf-viewer-throbber
Browse files Browse the repository at this point in the history
fix(pdf.twig): does not use jQuery to hide throbber
  • Loading branch information
mrflos authored Jul 19, 2024
2 parents a47f0be + dd61108 commit 9cc1d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/attach/templates/actions/pdf.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<iframe
src="javascripts/vendor/pdfjs-dist/web/pdf-viewer.php?file={{ url|e('url') }}"
class="embed-responsive-item" frameborder="0" allowfullscreen
onload="$(this).siblings('.pdf-block-loading').hide();"
onload="event.target.parentNode.querySelector('.pdf-block-loading').style.display='none';"
>
</iframe>
{% endblock %}
Expand Down

0 comments on commit 9cc1d3a

Please sign in to comment.