$().ready(->
  $(window).resize( ->
    App.UI.setAutoHeight()
  ).trigger('resize')

  $('#js-search-contacts').keyup( ->
    searchTerm = $(this).val()
    App.UI.filterContacts(searchTerm)
  )

  $('.chat-alert').on('click', '.close', (e) ->
    e.preventDefault()
    $('.chat-alert').fadeOut(250, -> $(this).html(''))
  )
)