Sha256: f5a632b778db6a367a6eeb2aab6f015deb3de27f48f0aa58be3810cf37711809
Contents?: true
Size: 632 Bytes
Versions: 1
Compression:
Stored size: 632 Bytes
Contents
# http://eonasdan.github.io/bootstrap-datetimepicker/Options/ initialize = -> $('input.effective_time_picker:not(.initialized)').each (i, element) -> element = $(element) options = element.data('input-js-options') || {} element.addClass('initialized').datetimepicker(options) $ -> initialize() $(document).on 'page:change', -> initialize() $(document).on 'turbolinks:load', -> initialize() $(document).on 'turbolinks:render', -> initialize() $(document).on 'cocoon:after-insert', -> initialize() $(document).on 'turbolinks:before-cache', -> $('input.effective_time_picker.initialized').datetimepicker('destroy')
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
effective_form_inputs-1.1.11 | app/assets/javascripts/effective_time_picker/initialize.js.coffee |