Sha256: 112722443aa5987539e259beaa9c20c400b6fce6324bfcc43cfaf9ee230395a4
Contents?: true
Size: 461 Bytes
Versions: 16
Compression:
Stored size: 461 Bytes
Contents
# http://eonasdan.github.io/bootstrap-datetimepicker/Options/ initialize = -> $('input.effective_date_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 'cocoon:after-insert', -> initialize()
Version data entries
16 entries across 16 versions & 1 rubygems