class @ReservationEdit
  @confirm_prompt = (login) ->
    $('#reservation_edit_button').click (e) ->
      if !confirm('Are you sure you want to edit this reservation ' + login + '?')
        e.preventDefault()
        return false
      return true

  @date_init = (date) ->
    $('#expires_on').datepicker({ defaultDate: date})

  @empty_date_init = () ->
    $('#expires_on').datepicker()
