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

Version Path
cambium-1.3.2 app/assets/javascripts/cambium/admin/views/pickadate.js.coffee
cambium-1.3.1 app/assets/javascripts/cambium/admin/views/pickadate.js.coffee
cambium-1.3.0 app/assets/javascripts/cambium/admin/views/pickadate.js.coffee
cambium-1.2.3 app/assets/javascripts/cambium/admin/views/pickadate.js.coffee
cambium-1.2.2 app/assets/javascripts/cambium/admin/views/pickadate.js.coffee
cambium-1.2.1 app/assets/javascripts/cambium/admin/views/pickadate.js.coffee
cambium-1.2.0 app/assets/javascripts/cambium/admin/views/pickadate.js.coffee
cambium-1.1.6 app/assets/javascripts/cambium/admin/views/pickadate.js.coffee
cambium-1.1.5 app/assets/javascripts/cambium/admin/views/pickadate.js.coffee
cambium-1.1.4 app/assets/javascripts/cambium/admin/views/pickadate.js.coffee
cambium-1.1.3 app/assets/javascripts/cambium/admin/views/pickadate.js.coffee
cambium-1.1.2 app/assets/javascripts/cambium/admin/views/pickadate.js.coffee
cambium-1.1.1 app/assets/javascripts/cambium/admin/views/pickadate.js.coffee
cambium-1.1.0 app/assets/javascripts/cambium/admin/views/pickadate.js.coffee
cambium-1.0.4 app/assets/javascripts/cambium/admin/views/pickadate.js.coffee
cambium-1.0.3 app/assets/javascripts/cambium/admin/views/pickadate.js.coffee
cambium-1.0.2 app/assets/javascripts/cambium/admin/views/pickadate.js.coffee
cambium-1.0.1 app/assets/javascripts/cambium/admin/views/pickadate.js.coffee
cambium-1.0.0 app/assets/javascripts/cambium/admin/views/pickadate.js.coffee