Sha256: f01cb8db24b75e396d6399e422844e9c1a8bf293ec271ac25c349c2c988fd555
Contents?: true
Size: 634 Bytes
Versions: 19
Compression:
Stored size: 634 Bytes
Contents
class App.Views.Pickadate extends Backbone.View el: 'body' initialize: -> $('input.pickadate').pickadate() $('input.pickatime').pickatime() if $('div.pickadatetime').length > 0 $('input.pickadatetime-date').pickadate() $('input.pickadatetime-time').pickatime() $('input.pickadatetime-date, input.pickadatetime-time').change (e) -> parent = $(e.target).parents('div.pickadatetime').first() val = parent.find('input.pickadatetime-date').val() val = "#{val} #{parent.find('input.pickadatetime-time').val()}" $(e.target).siblings('input.pickadatetime').first().val(val)
Version data entries
19 entries across 19 versions & 1 rubygems