app/assets/javascripts/chat.js.coffee
1ec65f29
 $().ready(->
43b171a9
   $(window).resize( ->
     App.UI.setAutoHeight()
   ).trigger('resize')
43899b3a
 
3a34499e
   Backbone.Events.on('resizeWorkspace', -> App.UI.setAutoHeight())
 
82fcdc6f
   $('#js-search-contacts').keyup( ->
43899b3a
     searchTerm = $(this).val()
     App.UI.filterContacts(searchTerm)
   )
82fcdc6f
 
910e0f23
   $('#add-contact').click((e) ->
82fcdc6f
     e.preventDefault()
910e0f23
     $('#js-popup .close').click()
     popup = new Xmpp.Views.Popup.AddContactView()
     popup.render()
82fcdc6f
   )
1ec65f29
 )