diff --git a/templates/base/components/button/layout.js.twig b/templates/base/components/button/layout.js.twig index ac2233841..a1cac2ef5 100644 --- a/templates/base/components/button/layout.js.twig +++ b/templates/base/components/button/layout.js.twig @@ -2,7 +2,7 @@ {% if oUIBlock.GetOnClickJsCode() is not empty %} $('#{{ oUIBlock.GetId() }}').on('click', function () { {{ oUIBlock.GetOnClickJsCode()|raw }} -}) +}); {% endif %} {% if oUIBlock.GetJsCode() is not empty %} {{ oUIBlock.GetJsCode()|raw }}