Skip to content

Commit

Permalink
Add Javascript assets targeted to bottom block (#1425)
Browse files Browse the repository at this point in the history
  • Loading branch information
Flamenco authored and rhukster committed Apr 17, 2018
1 parent 70208be commit 14691d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions themes/grav/templates/pages.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@

{% block bottom %}
<script>
{% parent() %}
$('.admin-pages .form-tabs .tabs-nav').css('margin-right', ($('#admin-topbar').width() + 20) + 'px');
</script>
{% endblock %}
4 changes: 3 additions & 1 deletion themes/grav/templates/partials/base-root.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@
<div id='overlay'></div>
</div>
{% endblock page %}
{% block bottom %}{% endblock %}
{% block bottom %}
{{ assets.js('bottom')|raw }}
{% endblock %}
</body>
{% endblock body %}
</html>
Expand Down

0 comments on commit 14691d7

Please sign in to comment.