Sha256: 142f6416464eb0722511712c18e0da3f517a5db1fa1d55b9a18d096f6fb77e1e

Contents?: true

Size: 471 Bytes

Versions: 12

Compression:

Stored size: 471 Bytes

Contents

# http://digitalbush.com/projects/masked-input-plugin/

initialize = ->
  $('input.effective_url:not(.initialized)').each (i, element) ->
    element = $(element)
    options = element.data('input-js-options') || {}

    # We don't actually do anything with options
    element.addClass('initialized')

$ -> initialize()
$(document).on 'page:change', -> initialize()
$(document).on 'turbolinks:load', -> initialize()
$(document).on 'cocoon:after-insert', -> initialize()

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
effective_form_inputs-1.0.6 app/assets/javascripts/effective_url/initialize.js.coffee
effective_form_inputs-1.0.5 app/assets/javascripts/effective_url/initialize.js.coffee
effective_form_inputs-1.0.4 app/assets/javascripts/effective_url/initialize.js.coffee
effective_form_inputs-1.0.3 app/assets/javascripts/effective_url/initialize.js.coffee
effective_form_inputs-1.0.2 app/assets/javascripts/effective_url/initialize.js.coffee
effective_form_inputs-1.0.1 app/assets/javascripts/effective_url/initialize.js.coffee
effective_form_inputs-1.0.0 app/assets/javascripts/effective_url/initialize.js.coffee
effective_form_inputs-0.9.8 app/assets/javascripts/effective_url/initialize.js.coffee
effective_form_inputs-0.9.7 app/assets/javascripts/effective_url/initialize.js.coffee
effective_form_inputs-0.9.6 app/assets/javascripts/effective_url/initialize.js.coffee
effective_form_inputs-0.9.5 app/assets/javascripts/effective_url/initialize.js.coffee
effective_form_inputs-0.9.4 app/assets/javascripts/effective_url/initialize.js.coffee