     "click .show-input-button": "showInput"
     "mouseenter .auto_complete>div": "selectAddNew"
     "mouseleave .auto_complete>div": "deActivateAddNew"
+
+  regions:
+    'added_channels': 'div.added_channels_container'
+    'auto_completes': 'div.auto_complete_container'
 
   activeChannelKey: -> @_activeChannelKey
 


updateWindowHeight = ->  window.updateHeight() if window.updateHeight

class window.AutoCompletedAddToChannelView extends Backbone.Factlink.PlainView
  tagName: "div"
  className: "add-to-channel"
  events:

  showAddNew: -> @$el.removeClass "hide-add-new"
  isAddNewVisible: -> not @$el.hasClass("hide-add-new")

  clearAutoComplete: ->
    @_auto_completes_view.closeList()
    @_auto_completes_view.search_collection.reset []
    @$(".auto_complete").addClass "empty"
    @deActivateAddNew()
    @showAddNew()