Sha256: 34b730c631a74a661daf0471d93c3e113ae3feb4d1c15707b3700ab3921208e4
Contents?: true
Size: 729 Bytes
Versions: 9
Compression:
Stored size: 729 Bytes
Contents
#= require jquery.xdan.datetimepicker.full @setupDateTimePicker = (container) -> defaults = { formatDate: 'y-m-d', format: 'Y-m-d H:i', allowBlank: true, defaultSelect: false, validateOnBlur: false } entries = $(container).find('input.date-time-picker') entries.each (index, entry) -> options = $(entry).data 'datepicker-options' $(entry).datetimepicker $.extend(defaults, options) @initXdanDateTimePickerPlugin = () -> setupDateTimePicker $('body') $(document).on 'has_many_add:after', '.has_many_container', (e, fieldset) -> setupDateTimePicker fieldset $(document).ready -> initXdanDateTimePickerPlugin() $(document).on 'turbolinks:load', -> initXdanDateTimePickerPlugin()
Version data entries
9 entries across 9 versions & 1 rubygems