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