Sha256: 5a07ff283ae01ca94510d746224753781563d50da580e5d04b82cad5ff58fbcb
Contents?: true
Size: 574 Bytes
Versions: 28
Compression:
Stored size: 574 Bytes
Contents
jQuery.fn.extend { updateRecaptchaToken: (event) -> recaptcha = @find("input._recaptcha-token") if !recaptcha[0]? recaptcha.val "recaptcha-token-field-missing" else if !grecaptcha? recaptcha.val("grecaptcha-undefined") else $slotter = $(this) event.stopPropagation() if event grecaptcha.execute(recaptcha.data("site-key"), action: recaptcha.data("action")) .then (token) -> recaptcha.val(token) recaptcha.addClass("_token-updated") if event $slotter.submit() false }
Version data entries
28 entries across 28 versions & 2 rubygems