Sha256: 7f776a411bf0696b1722044dd9a37a35ce59fba0ea85c674cafdb753622b6611
Contents?: true
Size: 549 Bytes
Versions: 16
Compression:
Stored size: 549 Bytes
Contents
# http://digitalbush.com/projects/masked-input-plugin/ initialize = -> $('input.effective_tel:not(.initialized)').each (i, element) -> element = $(element) options = element.data('input-js-options') || {} mask = options['mask'] delete options['mask'] element.addClass('initialized').mask(mask, options) $ -> initialize() $(document).on 'page:change', -> initialize() $(document).on 'turbolinks:load', -> initialize() $(document).on 'turbolinks:render', -> initialize() $(document).on 'cocoon:after-insert', -> initialize()
Version data entries
16 entries across 16 versions & 1 rubygems