class @Activity
  @init: ->
    nowTemp = new Date
    now = new Date(
      nowTemp.getFullYear(),
      nowTemp.getMonth(),
      nowTemp.getDate(), 0, 0, 0, 0)
    $('#after_date').datepicker(onRender: (date) ->
      if date.valueOf() > now.valueOf() then 'disabled' else ''
    )

    $('#before_date').datepicker(onRender: (date) ->
      if date.valueOf() > now.valueOf() then 'disabled' else ''
    )
