Sha256: b9ab8b534e4cebe0fedc580b3744c6c9ccadd5d2d65c1bddda17de05647680b9
Contents?: true
Size: 651 Bytes
Versions: 17
Compression:
Stored size: 651 Bytes
Contents
# http://digitalbush.com/projects/masked-input-plugin/ initialize = (target) -> $(target || document).find('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 'turbolinks:render', -> initialize() $(document).on 'cocoon:after-insert', -> initialize() $(document).on 'effective-form-inputs:initialize', (event) -> initialize(event.currentTarget)
Version data entries
17 entries across 17 versions & 1 rubygems