Sha256: 99b2ede40c48c24d82c368bdbd3e639a4d83f7f8365a84cba5c3fe0da32f9671
Contents?: true
Size: 641 Bytes
Versions: 15
Compression:
Stored size: 641 Bytes
Contents
# http://eonasdan.github.io/bootstrap-datetimepicker/Options/ initialize = -> $('input.effective_date_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_date_time_picker.initialized').datetimepicker('destroy')
Version data entries
15 entries across 15 versions & 1 rubygems