Skip to content

Commit

Permalink
Merge pull request #15 from Lemmork/feature/noes5
Browse files Browse the repository at this point in the history
TASK: Set requirements to work with neos 4 and 5
  • Loading branch information
Benjamin-K authored Jul 6, 2020
2 parents 37573e6 + 781166b commit a5dbaca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Resources/Private/Form/Captcha.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
<script src="{f:uri.resource(path: 'js/closest.min.js', package: 'Wegmeister.Recaptcha')}"></script>
</f:if>
<script
type="text/javascript">!function (d, w, m) { <f: if condition="{element.renderingOptions.includeAPIScript}">w.hasReCaptchaAPI||(w.hasReCaptchaAPI=true,m=d.createElement('script'),m.async=1,m.defer=1,m.src='https://www.google.com/recaptcha/api.js{f: if(condition: element.properties.lang, then: "?hl={element.properties.lang}")}',d.body.appendChild(m));</f: if> w.gRecaptchaCount= w.gRecaptchaCount || 0; var g = d.querySelectorAll(".g-recaptcha")[w.gRecaptchaCount], a = g.closest("form"); a.addEventListener("submit", function (t) { g.previousElementSibling.value = g.querySelector(".g-recaptcha-response").value }, !1); w.gRecaptchaCount++ }(document, window)</script>
</f:section>
type="text/javascript">!function (d, w, m) { <f:if condition="{element.renderingOptions.includeAPIScript}">w.hasReCaptchaAPI||(w.hasReCaptchaAPI=true,m=d.createElement('script'),m.async=1,m.defer=1,m.src='https://www.google.com/recaptcha/api.js{f:if(condition: element.properties.lang, then: "?hl={element.properties.lang}")}',d.body.appendChild(m));</f:if> w.gRecaptchaCount= w.gRecaptchaCount || 0; var g = d.querySelectorAll(".g-recaptcha")[w.gRecaptchaCount], a = g.closest("form"); a.addEventListener("submit", function (t) { g.previousElementSibling.value = g.querySelector(".g-recaptcha-response").value }, !1); w.gRecaptchaCount++ }(document, window)</script>
</f:section>
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Form Element for the Flow Form Framework integrating Google's Recaptcha",
"require": {
"google/recaptcha": "^1.2",
"neos/form": "^4.0",
"neos/form": "^4.0 || ^5.0",
"php": "~7.0"
},
"autoload": {
Expand Down

0 comments on commit a5dbaca

Please sign in to comment.