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

Version Path
card-mod-script-0.14.2 assets/script/decko/recaptcha.js.coffee
card-mod-script-0.14.1 assets/script/decko/recaptcha.js.coffee
card-mod-script-0.14.0 assets/script/decko/recaptcha.js.coffee
card-mod-script-0.13.4 assets/script/decko/recaptcha.js.coffee
card-mod-script-0.13.3 assets/script/decko/recaptcha.js.coffee
card-mod-script-0.13.2 assets/script/decko/recaptcha.js.coffee
card-mod-script-0.11.7 lib/javascript/decko/recaptcha.js.coffee
card-mod-script-0.12.0 lib/javascript/decko/recaptcha.js.coffee
card-mod-script-0.11.6 lib/javascript/decko/recaptcha.js.coffee
card-mod-script-0.11.5 lib/javascript/decko/recaptcha.js.coffee
card-mod-script-0.11.4 lib/javascript/decko/recaptcha.js.coffee
card-mod-script-0.11.3 lib/javascript/decko/recaptcha.js.coffee
card-mod-script-0.11.2 lib/javascript/decko/recaptcha.js.coffee
card-mod-script-0.11.1 lib/javascript/decko/recaptcha.js.coffee
card-mod-script-0.11.0 lib/javascript/decko/recaptcha.js.coffee
card-1.100.0 mod/machines/lib/javascript/decko/recaptcha.js.coffee
card-1.99.6 mod/machines/lib/javascript/decko/recaptcha.js.coffee
card-1.99.5 mod/machines/lib/javascript/decko/recaptcha.js.coffee
card-1.99.4 mod/machines/lib/javascript/decko/recaptcha.js.coffee
card-1.99.3 mod/machines/lib/javascript/decko/recaptcha.js.coffee