Skip to content

Feature/allow recaptcha uids greater 1000 - #24

Open
kathangeorg wants to merge 2 commits into
haassie:masterfrom
kathangeorg:feature/allowRecaptchaUidsGreater1000
Open

Feature/allow recaptcha uids greater 1000#24
kathangeorg wants to merge 2 commits into
haassie:masterfrom
kathangeorg:feature/allowRecaptchaUidsGreater1000

Conversation

@kathangeorg

Copy link
Copy Markdown

Because of for (var i = 1; i <= 1000; ++i) {...} .g-recaptcha fields with a uid >1000 are not rendered. Therfore I changed the addJsFooterInlineCode part.

…000)

Do not iterate from 1 to 1000 and check if there is a matching #g-recaptcha-{uid} div on current site, but iterate over existing .g-recaptcha elements and call grecaptcha.render(...) based on that .g-recaptcha elements.
@askabaria

Copy link
Copy Markdown

#21 already solved this issue.

@derhecht derhecht left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I would recommend @KittenCoder code minus code formatting changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants