From 70208bea7ba1ea327664655752863ca8538d34af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Vacek?= Date: Sat, 14 Apr 2018 19:29:25 +0200 Subject: [PATCH 1/2] Update blueprints.yaml (#1415) Missing "step" attribute for quality causing Safari browser (I didn't test it on other browsers) uses default step "1" and invalidate the quality input due the default input value is 0.8. This is preventing whole form from submit. Adding the step attribute fixes the bug. --- blueprints.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/blueprints.yaml b/blueprints.yaml index af6eb4a0..110a04bb 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -328,6 +328,7 @@ form: default: 0.8 validate: type: number + step: 0.01 help: The quality to use when resizing an image. Between 0 and 1 value. Dashboard: From 14691d7f93bb1f688c1894dcbc3bc701c4a5f1bf Mon Sep 17 00:00:00 2001 From: Flamenco Date: Tue, 17 Apr 2018 12:55:36 -0400 Subject: [PATCH 2/2] Add Javascript assets targeted to bottom block (#1425) --- themes/grav/templates/pages.html.twig | 1 + themes/grav/templates/partials/base-root.html.twig | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/themes/grav/templates/pages.html.twig b/themes/grav/templates/pages.html.twig index aff39558..d47197c0 100644 --- a/themes/grav/templates/pages.html.twig +++ b/themes/grav/templates/pages.html.twig @@ -410,6 +410,7 @@ {% block bottom %} {% endblock %} diff --git a/themes/grav/templates/partials/base-root.html.twig b/themes/grav/templates/partials/base-root.html.twig index 21572971..4bb6213b 100644 --- a/themes/grav/templates/partials/base-root.html.twig +++ b/themes/grav/templates/partials/base-root.html.twig @@ -114,7 +114,9 @@
{% endblock page %} - {% block bottom %}{% endblock %} + {% block bottom %} + {{ assets.js('bottom')|raw }} + {% endblock %} {% endblock body %}