Sha256: 9953e1d9251cb786d79cb519937ded2b0d0b6eed2dc558c1bb37bb6caad06eed
Contents?: true
Size: 569 Bytes
Versions: 2
Compression:
Stored size: 569 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) $ -> setupDateTimePicker $('body') $(document).on 'has_many_add:after', '.has_many_container', (e, fieldset) -> setupDateTimePicker fieldset
Version data entries
2 entries across 2 versions & 1 rubygems